Skip to content

Commit f6490dd

Browse files
committed
add instructions to log into the registry
1 parent 440f12e commit f6490dd

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

admin_guide/docker_registry.adoc

+21-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,24 @@ staged for the given repository.
112112
<9> This file contains a reference to a specific layer that has been linked into
113113
this repository via an image.
114114

115+
[[access]]
116+
== Accessing the Registry
117+
To access the registry directly such as to `docker push` or `docker pull` you must first login to the registry using an access token.
118+
119+
1. Ensure you are logged in to OpenShift as a real user
120+
121+
$ oc login
122+
123+
2. Get your access token
124+
125+
$ oc whoami -t
126+
127+
3. Log in to the docker registry
128+
129+
$ docker login -u <username> -e <any email address> -p <token value> <registry service host:port>
130+
131+
You should now be able to perform docker pull/push operations.
132+
115133
== Securing the Registry
116134

117135
Optionally, you can secure the registry so that it serves traffic via TLS:
@@ -230,7 +248,7 @@ $ sudo systemctl restart docker
230248
----
231249
====
232250
+
233-
. Validate the docker client connection. Running `docker push` to the registry or `docker pull` from the registry should succeed:
251+
. Validate the docker client connection. Running `docker push` to the registry or `docker pull` from the registry should succeed. Make sure you have link:#access[logged into the registry].
234252
+
235253
====
236254
[options="nowrap"]
@@ -243,3 +261,5 @@ cf2616975b4a: Image successfully pushed
243261
Digest: sha256:3662dd821983bc4326bee12caec61367e7fb6f6a3ee547cbaff98f77403cab55
244262
----
245263
====
264+
265+

0 commit comments

Comments
 (0)