Files
docker-cli/cli/command
David Scott a82e6868cc Use the default registry even without --debug
Previously if the Docker engine was not running the behaviour of
commands would vary depending on whether the --debug flag was provided.

For example, consider `docker logout`:

    $ docker logout
    Not logged in to

-- note the missing server URL

    $ docker --debug logout
    Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
    Not logged in to https://index.docker.io/v1/

-- note the server URL is present

This patch makes only the debug printing conditional on the `--debug` flag,
not the return value.

Signed-off-by: David Scott <dave.scott@docker.com>
2019-03-28 21:04:39 +00:00
..
2018-06-08 18:24:26 +02:00
2019-01-08 00:35:24 +01:00
2019-01-10 22:25:43 +01:00
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-11-08 11:37:49 +01:00
2019-03-19 13:33:32 +01:00
2018-10-23 17:05:44 +02:00
2018-11-08 11:37:49 +01:00
2019-03-13 14:18:41 +01:00
2019-01-10 22:25:43 +01:00
2017-09-01 19:41:06 -04:00
2019-01-10 22:25:43 +01:00