mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Use correct auth config when logging in.
Upstream-commit: 967010ae8c7eb2f6482a9245b42731b7ead61e4b Component: engine
This commit is contained in:
@@ -303,7 +303,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||
}
|
||||
|
||||
cli.LoadConfigFile()
|
||||
authconfig, ok := cli.configFile.Configs[auth.IndexServerAddress()]
|
||||
authconfig, ok := cli.configFile.Configs[serverAddress]
|
||||
if !ok {
|
||||
authconfig = auth.AuthConfig{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user