mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
Fix login
Right now it returns: ``` FATA[0001] json: Unmarshal(non-pointer types.AuthResponse) ``` Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||
}
|
||||
|
||||
var response types.AuthResponse
|
||||
if err := json.NewDecoder(stream).Decode(response); err != nil {
|
||||
if err := json.NewDecoder(stream).Decode(&response); err != nil {
|
||||
cli.configFile, _ = registry.LoadConfig(homedir.Get())
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user