Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Docker-machine 0.5.3 outputs status to STDERR instead of STDOUT #2587

Closed
generalov opened this issue Dec 15, 2015 · 3 comments · Fixed by #2603
Closed

Docker-machine 0.5.3 outputs status to STDERR instead of STDOUT #2587

generalov opened this issue Dec 15, 2015 · 3 comments · Fixed by #2603
Assignees
Milestone

Comments

@generalov
Copy link

I've installed https://github.com/docker/machine/releases/download/v0.5.3/docker-machine_linux-amd64 to try a PyCharm interation with Docker. But on the Python interpreter configuration streen I got an error:

Docker Machine returned empty status string for 'localhost'

Internally PyCharm executes commands:

docker-machine ls --quiet  
docker-machine status localhost

and reads results of the both commands from STDOUT.

But docker-machine status surpriselly outputs the status to STDERR.

$ { { docker-machine ls; } 2>&3 | sed 's/^/STDOUT: /'; } 3>&1 1>&2 | sed 's/^/STDERR: /'
STDOUT: NAME        ACTIVE   DRIVER    STATE     URL                    SWARM              DOCKER   ERRORS
STDOUT: localhost   -        generic   Running   tcp://127.0.0.1:2376   Smaster            v1.9.1   
$ { { docker-machine status localhost; } 2>&3 | sed 's/^/STDOUT: /'; } 3>&1 1>&2 | sed 's/^/STDERR: /'
STDERR: Running
@jeanlaurent
Copy link
Member

We have changed lots of the internal of the outputs in this release, we probably did a mistake.

To investigate.

@jeanlaurent jeanlaurent self-assigned this Dec 15, 2015
@nathanleclaire nathanleclaire added this to the 0.6.0 milestone Dec 15, 2015
@nathanleclaire
Copy link
Contributor

log.Info is printing to STDERR instead of STDOUT. It's happening with create and in a lot of other places as well. Submitted #2592 to fix.

@generalov
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants