diff --git a/cli/command/registry/login.go b/cli/command/registry/login.go index ba1b133054..c919e88d97 100644 --- a/cli/command/registry/login.go +++ b/cli/command/registry/login.go @@ -47,6 +47,10 @@ func runLogin(dockerCli command.Cli, opts loginOptions) error { ctx := context.Background() clnt := dockerCli.Client() + if opts.password != "" { + fmt.Fprintln(dockerCli.Err(), "WARNING! Using --password via the CLI is insecure.") + } + var ( serverAddress string authServer = command.ElectAuthServer(ctx, dockerCli)