FahamLah

Commands

docker login

docker login [-u user] [registry]

Risk: Careful

What it does

Logs in to a registry. Use an access token, not your password.

When to use it

Before pushing, or to lift pull limits.

Example

$ echo $DOCKER_TOKEN | docker login -u you --password-stdin

Log in with a token, safely.

$ docker logout

Forget the login.