moby/api
David Calavera d37f5ad62e Always prompt for a password when asking for credentials.
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>
2016-02-02 12:20:13 -05:00
..
client Always prompt for a password when asking for credentials. 2016-02-02 12:20:13 -05:00
fixtures Add more unit tests (thus coverage) to pkg api 2015-08-04 19:51:02 +02:00
server Respond with 401 when there is an unauthorized error from the registry. 2016-02-02 12:20:13 -05:00
common.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
common_test.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
README.md Update README.md 2014-07-04 18:21:13 +09:00

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon