Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

docker-machine ls: Timeout error when instance has been stopped #3056

@janeczku

Description

@janeczku

$ docker-machine ls

NAME              ACTIVE   DRIVER       STATE     URL                        SWARM   DOCKER    ERRORS
node01            -        openstack    Running   tcp://92.XXX.XXX.204:2376           v1.9.1

$ docker-machine stop node01

Stopping "node01"...
Machine "node01" was stopped.

$ docker-machine ls

NAME              ACTIVE   DRIVER       STATE     URL                        SWARM   DOCKER    ERRORS
node01            -        openstack    Timeout  

This is obviously doomed to fail, with commit 670c480 assuming incorrectly that when the driver returns the URL it means that the machine is running.

https://github.com/docker/machine/blob/master/commands/ls.go#L343-L347

/cc @dgageot

Version Info:
docker-machine version 0.6.0, build e27fb87

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions