Installing the oc-mirror OpenShift CLI plugin
You can install the oc-mirror OpenShift CLI plugin to manage image sets in disconnected environments.
-
You have installed the OpenShift CLI (
oc). If you are mirroring image sets in a fully disconnected environment, ensure the following:-
You have installed the oc-mirror plugin on the host that has internet access.
-
The host in the disconnected environment has access to the target mirror registry.
-
-
You have set the
umaskparameter to0022on the operating system that uses oc-mirror. -
You have installed the correct binary for the RHEL version that you are using.
-
Download the oc-mirror CLI plugin:
-
Navigate to the Downloads page of the Red Hat Hybrid Cloud Console.
-
In the OpenShift disconnected installation tools section, select the OS type and Architecture type of the OpenShift Client (oc) mirror plugin from the dropdown menus.
-
Click Download to save the file.
-
-
Extract the archive by running the following command:
$ tar xvzf oc-mirror.tar.gz -
If necessary, update the plugin file to be executable by running the following command:
$ chmod +x oc-mirrorDo not rename the
oc-mirrorfile. -
Install the oc-mirror CLI plugin by placing the file in your
PATH, for example/usr/local/bin, by running the following command:$ sudo mv oc-mirror /usr/local/bin/.
-
Verify that the oc-mirror plugin v2 is successfully installed by running the following command:
$ oc mirror --v2 --help