2021-06-23 09:05:47 +01:00
|
|
|
# docker login
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
> Log into a Docker registry.
|
2021-06-23 09:05:47 +01:00
|
|
|
> 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}}`
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Log into a registry with password from `stdin`:
|
2021-06-23 09:05:47 +01:00
|
|
|
|
2021-10-17 05:36:30 +01:00
|
|
|
`echo "{{password}}" | docker login --username {{username}} --password-stdin`
|