Right now it returns:
```
FATA[0001] json: Unmarshal(non-pointer types.AuthResponse)
```
Signed-off-by: Doug Davis <dug@us.ibm.com>
| ... | ... |
@@ -123,7 +123,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
| 123 | 123 |
} |
| 124 | 124 |
|
| 125 | 125 |
var response types.AuthResponse |
| 126 |
- if err := json.NewDecoder(stream).Decode(response); err != nil {
|
|
| 126 |
+ if err := json.NewDecoder(stream).Decode(&response); err != nil {
|
|
| 127 | 127 |
cli.configFile, _ = registry.LoadConfig(homedir.Get()) |
| 128 | 128 |
return err |
| 129 | 129 |
} |