mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
There is a weird behavior where we don't ask for a password when the user you type in the prompt is the same you have configured in the config file. This is the source of many frustrations and also a bug. If the authentication with a registry fails because the password is incorrect, we won't ask for the password again with the current logic. With this change, we also stop calling `CmdLogin` directly when authentication fails. We don't need to parse flags from the cli or setting up input destriptiors again, like the current behavior is doing. Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: 8ed06af0443f4239f446b3cff202d91a61af350f Component: engine