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-dry-run-v2.adoc
2025-02-20 16:47:33 +00:00

54 lines
2.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * installing/disconnected_install/installing-mirroring-disconnected-v2.adoc
:_mod-docs-content-type: PROCEDURE
[id="oc-mirror-dry-run-v2_{context}"]
= Performing a dry run for oc-mirror plugin v2
Verify your image set configuration by performing a dry run without mirroring any images. This ensures your setup is correct and prevents unintended changes.
.Procedure
* To perform a test run, run the `oc mirror` command and append the `--dry-run` argument to the command:
+
[source,terminal]
----
$ oc mirror -c <image_set_config_yaml> file://<oc_mirror_workspace_path> --dry-run --v2
----
+
where:
`<image_set_config_yaml>`:: Specifies the image set configuration file that you created.
`<oc_mirror_workspace_path>`:: Insert the address of the workspace path.
`<mirror_registry_url>`:: Insert the URL or address of the remote container registry from which images will be mirrored or deleted.
+
.Example output
[source,terminal]
----
[INFO] : :wave: Hello, welcome to oc-mirror
[INFO] : :gear: setting up the environment for you...
[INFO] : :twisted_rightwards_arrows: workflow mode: mirrorToDisk
[INFO] : :sleuth_or_spy: going to discover the necessary images...
[INFO] : :mag: collecting release images...
[INFO] : :mag: collecting operator images...
[INFO] : :mag: collecting additional images...
[WARN] : :warning: 54/54 images necessary for mirroring are not available in the cache.
[WARN] : List of missing images in : CLID-19/working-dir/dry-run/missing.txt.
please re-run the mirror to disk process
[INFO] : :page_facing_up: list of all images for mirroring in : CLID-19/working-dir/dry-run/mapping.txt
[INFO] : mirror time : 9.641091076s
[INFO] : :wave: Goodbye, thank you for using oc-mirror
----
.Verification
. Navigate to the workspace directory that was generated:
+
[source,terminal]
----
$ cd <oc_mirror_workspace_path>
----
. Review the `mapping.txt` and `missing.txt` files that were generated. These files contain a list of all images that would be mirrored.