mirror of https://github.com/containers/podman.git
Warn user about --password cli option in login
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
f2bcc9cc7d
commit
db60abe3d8
|
@ -82,6 +82,10 @@ func loginCmd(c *cliconfig.LoginValues) error {
|
|||
server = registryFromFullName(scrubServer(args[0]))
|
||||
}
|
||||
|
||||
if c.Flag("password").Changed {
|
||||
fmt.Fprintf(os.Stderr, "WARNING! Using --password via the cli is insecure. Please consider using --password-stdin\n")
|
||||
}
|
||||
|
||||
sc := image.GetSystemContext("", c.Authfile, false)
|
||||
if c.Flag("tls-verify").Changed {
|
||||
sc.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!c.TlsVerify)
|
||||
|
|
Loading…
Reference in New Issue