Skip to content

Commit fb5ea0c

Browse files
author
Aaron Lehmann
committed
Mention "docker login" in push/pull documentation
It was suggested to me that documentation for "docker pull" and "docker push" should reference "docker login", to make clearer how to specify credentials for a push or pull operation. Add a note to the manual pages and reference documentation explaining how registry credentials are managed. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
1 parent 1e1da2a commit fb5ea0c

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

docs/reference/commandline/pull.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ listening on port 5000 (`myregistry.local:5000`):
165165
$ docker pull myregistry.local:5000/testing/test-image
166166
```
167167

168+
Registry credentials are managed by [docker login](login.md).
169+
168170
Docker uses the `https://` protocol to communicate with a registry, unless the
169171
registry is allowed to be accessed over an insecure connection. Refer to the
170172
[insecure registries](daemon.md#insecure-registries) section for more information.

docs/reference/commandline/push.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ registry or to a self-hosted one.
2222

2323
Killing the `docker push` process, for example by pressing `CTRL-c` while it is
2424
running in a terminal, will terminate the push operation.
25+
26+
Registry credentials are managed by [docker login](login.md).

man/docker-pull.1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ listening on port 5000 (`myregistry.local:5000`):
151151

152152
$ docker pull myregistry.local:5000/testing/test-image
153153

154+
Registry credentials are managed by **docker-login(1)**.
155+
154156
Docker uses the `https://` protocol to communicate with a registry, unless the
155157
registry is allowed to be accessed over an insecure connection. Refer to the
156158
[insecure registries](https://docs.docker.com/engine/reference/commandline/daemon/#insecure-registries)

man/docker-push.1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Check that this worked by running:
4444
You should see both `rhel-httpd` and `registry-host:5000/myadmin/rhel-httpd`
4545
listed.
4646

47+
Registry credentials are managed by **docker-login(1)**.
48+
4749
# HISTORY
4850
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
4951
based on docker.com source material and internal work.

0 commit comments

Comments
 (0)