About oc-mirror plugin v2
The oc-mirror OpenShift CLI (oc) plugin is a single tool that mirrors all required Red Hat OpenShift Container Platform content and other images to your mirror registry.
To use the new version of oc-mirror, add the --v2 flag to the oc-mirror plugin v2 command line.
oc-mirror plugin v2 has the following features:
-
Provides a centralized method to mirror Red Hat OpenShift Container Platform releases, Operators, helm charts, and other images.
-
Verifies that the complete image set specified in the image set configuration file is mirrored to the mirrored registry, regardless of whether the images were previously mirrored or not.
-
Uses a cache system instead of metadata, which prevents the need to start the mirroring process over in the case of a failure for a single step of the process.
-
Maintains minimal archive sizes by incorporating only new images into the archive.
-
Generates mirroring archives with content selected by mirroring date.
-
Can generate
ImageDigestMirrorSet(IDMS) andImageTagMirrorSet(ITMS) resources, which cover the full image set, instead of anImageContentSourcePolicy(ICSP) resource, which only covered incremental changes to the image set for each mirroring operation with v1. -
Does not perform automatic pruning. v2 now uses a
Deletefeature, which grants users more control over deleting images. -
Introduces support for
registries.conffiles. This change facilitates mirroring to multiple enclaves while using the same cache.