From 967010ae8c7eb2f6482a9245b42731b7ead61e4b 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. --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 84b4e13bab..b7979837a5 100644 --- a/commands.go +++ b/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{} }