1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/oc-mirror-installing-plugin.adoc

57 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
:_content-type: PROCEDURE
[id="installation-oc-mirror-installing-plugin_{context}"]
= Installing the oc-mirror OpenShift CLI plug-in
To use the oc-mirror OpenShift CLI plug-in to mirror registry images, you must install the plug-in. If you are mirroring image sets in a fully disconnected environment, ensure that you install the oc-mirror plug-in on the host with internet access and the host in the disconnected environment with access to the mirror registry.
.Prerequisites
* You have installed the OpenShift CLI (`oc`).
.Procedure
. Download the oc-mirror CLI plug-in.
.. Navigate to the link:https://console.redhat.com/openshift/downloads[Downloads] page of the {console-redhat-com}.
.. Under the *Command-line interface (CLI) tools* section, click *Download* for *OpenShift Client (oc) mirror plugin* and save the file.
. Extract the archive:
+
[source,terminal]
----
$ tar xvzf oc-mirror-linux.tar.gz
----
. If necessary, update the plug-in file to be executable:
+
[source,terminal]
----
$ chmod +x oc-mirror
----
+
[NOTE]
====
Do not rename the `oc-mirror` file.
====
. Install the oc-mirror CLI plug-in by placing the file in your `PATH`, for example, `/usr/local/bin`:
+
[source,terminal]
----
$ sudo mv oc-mirror /usr/local/bin/.
----
.Verification
* Run `oc mirror help` to verify that the plug-in was successfully installed:
+
[source,terminal]
----
$ oc mirror help
----