mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Warn user about --password cli option in login
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user