From 38ae1de369ed9c7e22a93d76405d8e673d1f4b47 Mon Sep 17 00:00:00 2001 From: "Andrew C. Bodine" Date: Fri, 6 Feb 2015 09:51:01 -0800 Subject: [PATCH] adds notify user of login credential persistence for registry Signed-off-by: Andrew C. Bodine Upstream-commit: 0fadc9bd90c14acfd14a8c5e87d80e7a72438e2a Component: engine --- components/engine/api/client/commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/engine/api/client/commands.go b/components/engine/api/client/commands.go index 7d1f6e7002..eb1d36b59c 100644 --- a/components/engine/api/client/commands.go +++ b/components/engine/api/client/commands.go @@ -393,6 +393,8 @@ func (cli *DockerCli) CmdLogin(args ...string) error { return err } 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") != "" { fmt.Fprintf(cli.out, "%s\n", out2.Get("Status")) }