From 537fcd112e795865e26dfab3061116a0ada4ee7b Mon Sep 17 00:00:00 2001 From: Johan Rydberg Date: Tue, 8 Oct 2013 06:46:29 +0200 Subject: [PATCH] Use correct auth config when logging in. Upstream-commit: 967010ae8c7eb2f6482a9245b42731b7ead61e4b Component: engine --- components/engine/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/commands.go b/components/engine/commands.go index 84b4e13bab..b7979837a5 100644 --- a/components/engine/commands.go +++ b/components/engine/commands.go @@ -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{} }