mirror of https://github.com/docker/cli.git
login: print a big warning when using --password
Task command lines are world readable via /proc/pid/cmdline, so this isn't safe. Signed-off-by: Tycho Andersen <tycho@tycho.ws>
This commit is contained in:
parent
92a2a1d539
commit
c269ad26e8
|
@ -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