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-command-reference-v2.adoc
2024-08-22 01:27:18 +00:00

80 lines
2.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * installing/disconnected_install/installing-mirroring-disconnected-v2.adoc
:_mod-docs-content-type: REFERENCE
[id="oc-mirror-command-reference-v2_{context}"]
= Command reference for oc-mirror plugin v2
The following tables describe the `oc mirror` subcommands and flags for oc-mirror plugin v2:
.Subcommands and flags for the oc-mirror plugin v2
[cols="1,2",options="header"]
|===
|Subcommand
|Description
|`help`
|Show help about any subcommand
|`version`
|Output the oc-mirror version
|`delete`
|Deletes images in remote registry and local cache.
|===
.oc mirror flags
[cols="1,2",options="header"]
|===
|Flag
|Description
|`--authfile`
|Displays the string path of the authentication file. Default is `${XDG_RUNTIME_DIR}/containers/auth.json`.
|`-c`, `--config` `<string>`
|Specifies the path to an image set configuration file.
|`--dest-tls-verify`
|Requires HTTPS and verifies certificates when accessing the container registry or daemon.
|`--dry-run`
|Prints actions without mirroring images
|`--from <string>`
|Specifies the path to an image set archive that was generated by executing oc-mirror plugin v2 to load a target registry.
|`-h`, `--help`
|Displays help
|`--loglevel`
|Displays string log levels. Supported values include info, debug, trace, error. The default is `info`.
|`-p`, `--port`
|Determines the HTTP port used by oc-mirror plugin v2 local storage instance. The default is `55000`.
|`--max-nested-paths <int>`
|Specifies the maximum number of nested paths for destination registries that limit nested paths. The default is `0`.
|`--secure-policy`
|Default value is `false`. If you set a non-default value, the command enables signature verification, which is the secure policy for signature verification.
|`--since`
|Includes all new content since a specified date (format: `yyyy-mm-dd`). When not provided, new content since previous mirroring is mirrored.
|`--src-tls-verify`
|Requires HTTPS and verifies certificates when accessing the container registry or daemon.
|`--strict-archive`
|Default value is `false`. If you set a value, the command generates archives that are strictly less than the `archiveSize` that was set in the `imageSetConfig` custom resource (CR). Mirroring exist in error if a file being archived exceeds `archiveSize` (GB).
|`-v`, `--version`
|Displays the version for oc-mirror plugin v2.
|`--workspace`
|Determines string oc-mirror plugin v2 workspace where resources and internal artifacts are generated.
|===