Skip to content

Commit 60cffc2

Browse files
committed
Describe configuring Docker to avoid TLS verifying OCP registry
Thanks Jaya for the suggestion. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 60b9820 commit 60cffc2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

templates/jlink/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ prepare UBI9 OpenJDK ImageStreams with `jlink-dev` support.
2222

2323
oc create imagestream ubi9-openjdk-17
2424

25-
3. Log into the OpenShift registry, e.g.
25+
3. You may need to configure your container engine to not TLS-verify the OpenShift
26+
registry. For Docker, add the following to `/etc/docker/daemon.json` and restart
27+
the daemon:
28+
29+
{
30+
"insecure-registries": [ "default-route-openshift-image-registry.apps-crc.testing" ]
31+
}
32+
33+
4. Log into the OpenShift registry, e.g.
2634

2735
REGISTRY_AUTH_PREFERENCE=docker oc registry login
2836

29-
4. tag and push the dev image into it. The OpenShift console gives you the
37+
5. tag and push the dev image into it. The OpenShift console gives you the
3038
exact URI for your instance
3139

3240
docker tag ubi9/openjdk-17:1.18 default-route-openshift-image-registry.apps-crc.testing/jlink1/ubi9-openjdk-17:1.18

0 commit comments

Comments
 (0)