From bcd8562960cbf12c7f9601490ef046850d865f3a Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Thu, 27 Jun 2019 10:26:21 +0200 Subject: [PATCH] Update README.md --- Using-Skopeo/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Using-Skopeo/README.md b/Using-Skopeo/README.md index b1b1dc2..5422a93 100644 --- a/Using-Skopeo/README.md +++ b/Using-Skopeo/README.md @@ -195,7 +195,7 @@ You can check that this token is working properly by inspecting an image stream in the `openshift` namespace: ```sh -skopeo --insecure-policy inspect --creds="skopeo:$TOKEN" docker://$REGISTRY/openshift/nodejs +skopeo --tls-verify=false inspect --creds="skopeo:$TOKEN" docker://$REGISTRY/openshift/nodejs ``` `nodejs` is an image stream that is provisioned by default on every OpenShift @@ -232,7 +232,7 @@ You can then copy your images to the OpenShift registry, in the `my-images` project: ```sh -skopeo --insecure-policy copy --dest-creds="skopeo:$TOKEN" oci:./target:rhel7:7.5 docker://$REGISTRY/my-images/rhel7:7.5 +skopeo --dest-tls-verify=false copy --dest-creds="skopeo:$TOKEN" oci:./target:rhel7:7.5 docker://$REGISTRY/my-images/rhel7:7.5 ``` Did you know that even if you can store the images locally, you can also copy @@ -241,7 +241,7 @@ them "on the fly" without any local storage ? Try to copy an image from the Docker Hub directly to the OpenShift registry: ```sh -skopeo --insecure-policy copy --dest-creds="skopeo:$TOKEN" docker://docker.io/centos:7 docker://$REGISTRY/my-images/centos:7 +skopeo --dest-tls-verify=false --src-tls-verify=false copy --dest-creds="skopeo:$TOKEN" docker://docker.io/centos:7 docker://$REGISTRY/my-images/centos:7 ``` ## Pulling an image to the OpenShift registry @@ -270,7 +270,7 @@ You can then copy your images from the OpenShift registry, located in the `other-images` project: ```sh -skopeo --insecure-policy copy --src-creds="skopeo:$TOKEN" docker://$REGISTRY/other-images/myimage:latest oci:./target:myimage:latest +skopeo --dest-tls-verify=false --src-tls-verify=false copy --src-creds="skopeo:$TOKEN" docker://$REGISTRY/other-images/myimage:latest oci:./target:myimage:latest ``` ## Persist the registry credentials