Openshift Download Docker Image !!top!!

oc import-image my-image:latest --from=docker.io/username/my-image:latest --confirm Use code with caution.

oc create secret docker-registry my-pull-secret \ --docker-server=docker.io \ --docker-username= \ --docker-password= oc secrets link default my-pull-secret --for=pull Use code with caution. 2. Exporting Images from OpenShift to Local Machine openshift download docker image

Use the oc new-app command to pull an image and deploy it immediately. oc new-app --docker-image=docker.io/library/nginx:latest Use code with caution. oc import-image my-image:latest --from=docker

docker login -u $(oc whoami) -p $(oc whoami -t) Use code with caution. Exporting Images from OpenShift to Local Machine Use

To download an image out of OpenShift to your local machine, you must interact with the internal OpenShift registry.

To "download" a Docker image in the context of OpenShift, you typically need to either pull an external image into your OpenShift cluster or export an image from OpenShift's internal registry to your local machine. 1. Pulling External Images into OpenShift