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
12 changes: 12 additions & 0 deletions pages/common/docker-login.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# docker login

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

- 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 -u {{username}} -p {{password}} {{server}}`
258204 marked this conversation as resolved.
Show resolved Hide resolved

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

`{{cat path/to/password.txt}} | docker login -u {{username}} --password-stdin`
258204 marked this conversation as resolved.
Show resolved Hide resolved