DockerCLI/cli/command
Marcus Martins 862649707e
Handle a Docker daemon without registry info
The current implementation of the ElectAuthServer doesn't handle well when the
default Registry server is not included in the response from the daemon Info
endpoint.

That leads to the storage and usage of the credentials for the default registry
(`https://index.docker.io/v1/`) under an empty string on the client config file.

Sample config file after a login via a Docker Daemon without Registry
information:
```json
{
	"auths": {
		"": {
			"auth": "***"
		}
	}
}
```

That can lead to duplication of the password for the default registry and
authentication failures against the default registry if a pull/push is performed
without first authenticating via the misbehaving daemon.

Also, changes the output of the warning message from stdout to sdterr as
per dnephin suggestion.

Signed-off-by: Marcus Martins <marcus@docker.com>
2017-05-26 14:46:39 -07:00
..
bundlefile Import docker/docker/cli 2017-04-17 17:40:59 -04:00
checkpoint Add interfacer linter 2017-05-08 15:57:50 -04:00
commands Add support for configs 2017-05-11 13:42:49 -07:00
config Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
container Merge pull request #102 from keloyang/attach-block 2017-05-24 12:09:38 +01:00
formatter Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
idresolver cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
image Update cli imports to using local package 2017-05-15 14:45:19 +02:00
inspect Update imports. 2017-04-17 18:07:56 -04:00
network Add support for config-only, config-from and scope options 2017-05-17 17:17:50 -07:00
node Update cli imports to using local package 2017-05-15 14:45:19 +02:00
plugin Update cli imports to using local package 2017-05-15 14:45:19 +02:00
prune Update cli imports to using local package 2017-05-15 14:45:19 +02:00
registry Update cli imports to using local package 2017-05-15 14:45:19 +02:00
secret Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
service Merge pull request #77 from vdemeester/move-duration-opts 2017-05-18 11:15:30 +02:00
stack Add support for configs to compose format 2017-05-16 17:10:14 -04:00
swarm Avoid loop when discarding contents of progress pipe 2017-05-16 14:34:59 -07:00
system make system prune “--filter” flag available only for docker 17.04 (api v1.28) and newer 2017-05-17 12:36:09 -07:00
task Add ineffassign linter. 2017-05-02 17:57:46 -04:00
volume Update cli imports to using local package 2017-05-15 14:45:19 +02:00
cli.go Use CheckRedirect so that client behaves the same way with GO 1.8 2017-05-16 11:48:00 -04:00
events_utils.go Add deadcode linter. 2017-05-02 17:57:46 -04:00
in.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
out.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
registry.go Handle a Docker daemon without registry info 2017-05-26 14:46:39 -07:00
registry_test.go Handle a Docker daemon without registry info 2017-05-26 14:46:39 -07:00
stream.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
trust.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
utils.go Add interfacer linter 2017-05-08 15:57:50 -04:00