diff --git a/cli/command/registry/login.go b/cli/command/registry/login.go index ba1b133054c8..c919e88d9763 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)