mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
72 lines
2.3 KiB
Plaintext
72 lines
2.3 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-delete-v2_{context}"]
|
|
= Command reference for deleting images
|
|
|
|
The following tables describe the `oc mirror` subcommands and flags for deleting images:
|
|
|
|
.Subcommands and flags for the deleting images
|
|
[cols="1,2",options="header"]
|
|
|===
|
|
|Subcommand
|
|
|Description
|
|
|
|
|`--authfile <string>`
|
|
|Path of the authentication file. The default value is `${XDG_RUNTIME_DIR}/containers/auth.json`.
|
|
|
|
|`--cache-dir <string>`
|
|
|oc-mirror cache directory location. The default is `$HOME`.
|
|
|
|
|`-c <string>`, `--config <string>`
|
|
|Path to the delete imageset configuration file.
|
|
|
|
|`--delete-id <string>`
|
|
|Used to differentiate between versions for files created by the delete functionality.
|
|
|
|
|`--delete-v1-images`
|
|
|Used during the migration, along with `--generate`, in order to target images previously mirrored with oc-mirror plugin v1.
|
|
|
|
|`--delete-yaml-file <string>`
|
|
|If set, uses the generated or updated yaml file to delete contents.
|
|
|
|
|`--dest-tls-verify`
|
|
|Require HTTPS and verify certificates when talking to the container registry or daemon. TThe default value is `true`.
|
|
|
|
|`--force-cache-delete`
|
|
|Used to force delete the local cache manifests and blobs.
|
|
|
|
|`--generate`
|
|
|Used to generate the delete yaml for the list of manifests and blobs, used when deleting from local cache and remote registry.
|
|
|
|
|`-h`, `--help`
|
|
|Displays help.
|
|
|
|
|`--log-level <string>`
|
|
|Log level one of `info`, `debug`, `trace`, and `error`. The default value is `info`.
|
|
|
|
|`--parallel-images <unit>`
|
|
|Indicates the number of images deleted in parallel. The default value is `8`.
|
|
|
|
|`--parallel-layers <unit>`
|
|
|Indicates the number of image layers mirrored in parallel. The default value is `10`.
|
|
|
|
|`-p <unit>`, `--port <unit>`
|
|
|HTTP port used by oc-mirror's local storage instance. The default value is `55000`.
|
|
|
|
|`--retry-delay`
|
|
|Duration delay between 2 retries. The default value is `1s`.
|
|
|
|
|`--retry-times <int>`
|
|
|The number of times to retry. The default value is `2`.
|
|
|
|
|`--src-tls-verify`
|
|
|Require HTTPS and verify certificates when talking to the container registry or daemon. The default value is `true`.
|
|
|
|
|`--workspace <string>`
|
|
|oc-mirror workspace where resources and internal artifacts are generated.
|
|
|
|
|=== |