Browse Source

Update README.md

master
Nicolas Massé 7 years ago
committed by GitHub
parent
commit
bcd8562960
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Using-Skopeo/README.md

8
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: in the `openshift` namespace:
```sh ```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 `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: project:
```sh ```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 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: Try to copy an image from the Docker Hub directly to the OpenShift registry:
```sh ```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 ## 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: `other-images` project:
```sh ```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 ## Persist the registry credentials

Loading…
Cancel
Save