Loading of OCI Images in an Airgap Environment

Zhimin Wen
Mar 7 · 1 min read

This short paper records the steps for loading the images in an air-gapped environment of OpenShift Container Platform (OCP) 4.2.

Skopeo is the tool.

First, on the internet-facing Ubuntu server, install skopeo.

sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:projectatomic/ppa
sudo apt-get update
sudo apt-get -y install skopeo

Then, download the image into files. For all the following Rook Operator images,


copy the image from the remote registry into a local directory,

skopeo copy docker://{{ .img }} dir:{{ .dir }}


skopeo copy docker://docker.io/ceph/ceph:v14.2.6 dir:/tmp/images/ceph:v14.2.6

Then transfer all the files, into the bastion node of OCP.

Finally, we can load the image into the worker nodes. The Go template {{ .worker }} denotes the worker node’s name or IP.

scp -r /tmp/images core@{{ .worker }}:/tmp

For each of the images required, copy it into the OCI container storage.

ssh core@{{ .worker }} skopeo copy dir:/tmp/images/ceph:v14.2.6 containers-storage:docker.io/ceph/ceph:v14.2.6

Now we have all the required images loaded into OCI container storage.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade