mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
adds notify user of login credential persistence for registry
Signed-off-by: Andrew C. Bodine <acbodine@us.ibm.com>
This commit is contained in:
parent
f4dc496d36
commit
0fadc9bd90
1 changed files with 2 additions and 0 deletions
|
@ -393,6 +393,8 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
registry.SaveConfig(cli.configFile)
|
registry.SaveConfig(cli.configFile)
|
||||||
|
fmt.Fprintf(cli.out, "WARNING: login credentials saved in %s.\n", path.Join(homedir.Get(), registry.CONFIGFILE))
|
||||||
|
|
||||||
if out2.Get("Status") != "" {
|
if out2.Get("Status") != "" {
|
||||||
fmt.Fprintf(cli.out, "%s\n", out2.Get("Status"))
|
fmt.Fprintf(cli.out, "%s\n", out2.Get("Status"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue