DockerCLI/cli
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
..
command Handle a Docker daemon without registry info 2017-05-26 14:46:39 -07:00
compose Add support for configs to compose format 2017-05-16 17:10:14 -04:00
config Add support for configs 2017-05-11 13:42:49 -07:00
debug Import docker/docker/cli 2017-04-17 17:40:59 -04:00
flags Update cli imports to using local package 2017-05-15 14:45:19 +02:00
internal/test Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
trust Update imports. 2017-04-17 18:07:56 -04:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go fix docker/docker/cli path in comment 2017-04-24 11:31:08 -07:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
version.go Display proper version information 2017-05-09 14:22:51 -07:00