mirror of https://github.com/docker/cli.git
Merge pull request #270 from tych0/warn-only-about-password-on-cli
login: print a big warning when using --password
This commit is contained in:
commit
c99530b1d2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue