manage
mirror-images
Extended description
You must run the mirror-images
command to mirror the
images for any Cloud Pak for Data components that you want
to install on your cluster.
If the cluster is in a restricted network, the command can automatically configure an
intermediary registry in the cpd-cli-workspace/olm-utils-workspace/work
directory. After you
transfer the directory to a workstation within the cluster network, you can mirror the images to the
private container registry.
cpd-cli
manage
login-private-registry
command twice (once for the mirrored
registry and once for the private container registry). For more information, see manage login-private-registry
.Syntax
cpd-cli manage mirror-images \
--components=<comma-separated-list-of-component-names> \
--release=<version> \
--target_registry=<registry-URL> \
[--source_registry=127.0.0.1:12443] \
[--arch=amd64|ppc64le|s390x] \
[--case_download=true|false] \
[--retry_count=3] \
[--retry_delay=30] \
[--param-file=<file-name>] \
[-v][-vv][-vvv]
Arguments
The mirror-images
command has no arguments.
Options
Option | Description |
---|---|
--arch |
Specify the architecture of your Red Hat OpenShift Container Platform
cluster.
|
--case_download |
Specify whether to download the CASE packages for the specified
components if they are not detected in the work directory.
|
--components |
A comma-separated list of the components for which you want to mirror
the associated images.
|
--param-file |
The fully qualified path of a file that includes additional
parameters. Create the file in the
|
--release |
The release for which you want to mirror
images.
|
--retry_count |
The number of times to retry the command in the event of a network
failure.
|
--retry_delay |
The number of seconds to wait before retrying the command in the
event of a network failure.
|
--source_registry |
The URL of the intermediary container
registry. If the cluster is in a restricted network, specify this parameter after you transfer the images behind the firewall.
|
--target_registry |
The registry to mirror images
to.
|
-v -vv -vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- Mirror images from the IBM Entitled Registry to a private container registry
- This command mirrors only the images for your cluster architecture. If you want to mirror all of
the images, remove the
--arch
option.Important: To mirror images directly from the IBM Entitled Registry to a private container registry, you must be connected to the internet.cpd-cli manage mirror-images \ --components=${COMPONENTS} \ --release=${VERSION} \ --target_registry=${PRIVATE_REGISTRY_LOCATION} \ --arch=${IMAGE_ARCH}
- Mirror the images for your cluster architecture in a restricted network to an intermediary container registry (Step 1 of 2)
- This command mirrors only the images for your cluster architecture. If you want to mirror all of
the images, remove the
--arch
option.Important: To mirror images from the IBM Entitled Registry to the intermediary container registry, you must be connected to the internet.cpd-cli manage mirror-images \ --components=${COMPONENTS} \ --release=${VERSION} \ --target_registry=127.0.0.1:12443 \ --arch=${IMAGE_ARCH}
- Mirror images in a restricted network to a private container registry (Step 2 of 2)
- This command mirrors only the images for your cluster architecture. If you removed the
--arch
option when you mirrored the images from the IBM Entitled Registry, remove the--arch
option when you mirror the images from the intermediary container registry.Important: To mirror images from the intermediary container registry to the private container registry, you must be in the same network as the private container registry.cpd-cli manage mirror-images \ --components=${COMPONENTS} \ --release=${VERSION} \ --source_registry=127.0.0.1:12443 \ --target_registry=${PRIVATE_REGISTRY_LOCATION} \ --arch=${IMAGE_ARCH} \ --case_download=false