manage
list-images
Extended description
Use the list-images
command to:
- Ensure you have access to the images you want to install
- Itemize the images that will be mirrored to a private container registry
- Inspect the contents of a private container registry
If your cluster is in a restricted network, you must download the CASE packages before you inspect the contents of the private container registry.
The output is saved to the list_images.csv
file in the cpd-cli-workspace/olm-utils-workspace/work/offline/${VERSION}
directory.
Syntax
cpd-cli manage list-images \
--release=<version> \
--components=<comma-separated-list-of-component-names> \
[--case_download=true|false] \
[--inspect_source_registry=true|false] \
[--target_registry=<registry-URL>]
Arguments
The list-images
command has no arguments.
Options
Option | Description |
---|---|
--case_download |
Specify whether to download the CASE packages for the specified
components if they are not detected in the work directory. Important: The command
will fail if the CASE packages are not
in the
cpd-cli-workspace/olm-utils-workspace/work directory.
|
--components |
A comma-separated list of the components for which you want to see
the associated images.
|
--inspect_source_registry |
Specify whether you want to confirm that the images for the specified
components are accessible from the IBM Entitled Registry.
|
--release |
The release that you want to
install or upgrade to.
|
--target_registry |
The URL of the target
registry. Specify this option if you want to confirm that the images for the specified components were mirrored to the registry.
|
Examples
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- List the images that will be mirrored for the specified components
-
cpd-cli manage list-images \ --components=${COMPONENTS} \ --release=${VERSION}
- Ensure that you have access to the images in the IBM Entitled Registry for the specified components
-
Remember: Before you run the command:
- Ensure that the client is connected to the internet.
- Run the
login-entitled-registry
command.
cpd-cli manage list-images \ --components=${COMPONENTS} \ --release=${VERSION} \ --inspect_source_registry=true
- List the images that will be mirrored to the intermediary container registry
-
cpd-cli manage list-images \ --components=${COMPONENTS} \ --release=${VERSION} \ --target_registry=127.0.0.1:12443
- Inspect the images that were mirrored to the private container registry
-
cpd-cli manage list-images \ --components=${COMPONENTS} \ --release=${VERSION} \ --target_registry=${PRIVATE_REGISTRY_LOCATION} \ --case_download=false