mirror of https://github.com/CrimsonTome/tldr.git
21 lines
567 B
Markdown
21 lines
567 B
Markdown
# docker login
|
|
|
|
> Log into a Docker registry.
|
|
> More information: <https://docs.docker.com/engine/reference/commandline/login/>.
|
|
|
|
- Interactively log into a registry:
|
|
|
|
`docker login`
|
|
|
|
- Log into a registry with a specific username (user will be prompted for a password):
|
|
|
|
`docker login --username {{username}}`
|
|
|
|
- Log into a registry with username and password:
|
|
|
|
`docker login --username {{username}} --password {{password}} {{server}}`
|
|
|
|
- Log into a registry with password from `stdin`:
|
|
|
|
`echo "{{password}}" | docker login --username {{username}} --password-stdin`
|