Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-login: add page #6137

Merged
merged 9 commits into from
Jun 23, 2021
Merged
20 changes: 20 additions & 0 deletions pages/common/docker-login.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# docker login

> Log into a docker registry.
> More information: <https://docs.docker.com/engine/reference/commandline/login/>.

- Log into registry (user will be prompted for a username and password):
258204 marked this conversation as resolved.
Show resolved Hide resolved

`docker login`

- Log into registry with a specific username (user will be prompted for a password):
258204 marked this conversation as resolved.
Show resolved Hide resolved

`docker login --username {{username}}`

- Log into registry with username and password:
258204 marked this conversation as resolved.
Show resolved Hide resolved
258204 marked this conversation as resolved.
Show resolved Hide resolved

`docker login --username {{username}} --password {{password}} {{server}}`

- Log into registry with password from stdin:
258204 marked this conversation as resolved.
Show resolved Hide resolved

` echo "{{password}}" | docker login --username {{username}} --password-stdin`
marchersimon marked this conversation as resolved.
Show resolved Hide resolved