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:
parent
60e426938e
commit
967010ae8c
1 changed files with 1 additions and 1 deletions
|
@ -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{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue