You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ oc adm release mirror -a ${LOCAL_SECRET_JSON} --to-dir=${REMOVABLE_MEDIA_PATH}/mirror quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE}-${ARCHITECTURE}
139
139
----
140
-
... Export a local temporary repository name:
140
+
... Take the media to the restricted network environment and upload the images to the local container registry:
141
141
+
142
142
[source,terminal]
143
143
----
144
-
$ TEMP_REPOSITORY='<temp_repository_name>'
144
+
$ oc image mirror -a ${LOCAL_SECRET_JSON} --from-dir=${REMOVABLE_MEDIA_PATH}/mirror "file://openshift/release:${OCP_RELEASE}*" ${LOCAL_REGISTRY}/${LOCAL_REPOSITORY} <1>
145
145
----
146
146
+
147
-
For `<temp_repository_name>`, specify the name of a temporary repository to create in your
148
-
registry, such as `ocp4/temp`.
149
-
... Take the media to the restricted network environment and upload the images to the temporary repository in the local container registry. By uploading the images to the temporary repository, you can then mirror them to the final repositories so that the release images are mirrored to a separate repository.
147
+
<1> For `REMOVABLE_MEDIA_PATH`, you must use the path where you mounted the removable media.
150
148
+
151
-
[source,terminal]
152
-
----
153
-
$ oc image mirror -a ${LOCAL_SECRET_JSON} --from-dir=${REMOVABLE_MEDIA_PATH}/mirror "file://openshift/release:${OCP_RELEASE}*" ${LOCAL_REGISTRY}/${TEMP_REPOSITORY} <1>
154
-
----
149
+
... Mirror the release image to a separate repository:
0 commit comments