1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Use correct auth config when logging in.

This commit is contained in:
Johan Rydberg 2013-10-08 06:46:29 +02:00
parent 60e426938e
commit 967010ae8c

View file

@ -303,7 +303,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
} }
cli.LoadConfigFile() cli.LoadConfigFile()
authconfig, ok := cli.configFile.Configs[auth.IndexServerAddress()] authconfig, ok := cli.configFile.Configs[serverAddress]
if !ok { if !ok {
authconfig = auth.AuthConfig{} authconfig = auth.AuthConfig{}
} }