OpenShift 4.10 Image Mirroring for Airgap Environment

Zhimin Wen
7 min readMay 12, 2022
Image by Cock-Robin from Pixabay

OpenShift 4.10 has brought in some new features to streamline the installation of airgap/disconnected environment for the platform’s images, the operator’s images, and other normal images. Let's check it out.

A Mirror Registry with Red Hat Quay

A small-scale Quay can be set up on a Redhat Linux server with a single command-line tool, mirror-registry , such as

sudo ./mirror-registry install --quayRoot /mirror-registry --quayHostname mirror-registry.dev-ocp410.ibmcloud.io.cpak

With the Podman prerequisites, the mirror-registry package self contains the required container images for Quay. Supply the root directory, and the fully qualified hostname, the command line will set up the Quay registry on port 8443 with the initial username and password shown on the stdout. Note down it and you can log on to the Quay Web console.

Quay with container image populated.

If we check the containers, we can find quay-app, quay-redis, and quay-postgres respectively.

$ sudo podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS…

--

--

No responses yet