@@ -14,8 +14,11 @@ docker-login - Log in to a Docker registry.
1414# DESCRIPTION
1515Log in to a Docker Registry located on the specified
1616` SERVER ` . You can specify a URL or a ` hostname ` for the ` SERVER ` value. If you
17- do not specify a ` SERVER ` , the command uses Docker's public registry located at
18- ` https://registry-1.docker.io/ ` by default. To get a username/password for Docker's public registry, create an account on Docker Hub.
17+ do not specify a ` SERVER ` , the command uses the first value in the field 'registries'
18+ in the '[ registries.search] ' table in /etc/containers/registries.conf, and if
19+ not specified there, Docker's public registry located at ` https://registry-1.docker.io/ ` .
20+
21+ To get a username/password for Docker's public registry, create an account on Docker Hub.
1922
2023` docker login ` requires user to use ` sudo ` or be ` root ` , except when:
2124
@@ -42,6 +45,10 @@ credentials. When you log in, the command stores encoded credentials in
4245
4346 # docker login localhost:8080
4447
48+ ## Login to Docker Hub overriding /etc/containers/registries.conf
49+
50+ # docker login docker.io
51+
4552# See also
4653** docker-logout(1)** to log out from a Docker registry.
4754
@@ -51,3 +58,4 @@ based on docker.com source material and internal work.
5158June 2014, updated by Sven Dowideit < SvenDowideit@home.org.au >
5259April 2015, updated by Mary Anthony for v2 < mary@docker.com >
5360November 2015, updated by Sally O'Malley < somalley@redhat.com >
61+ March 2018, updated by Tom Sweeney < tsweeney@redhat.com >
0 commit comments