manage load-image

Load a saved image to the container runtime on the client workstation.

Prerequisites

Important: To run this command, you must have the Red Hat® OpenShift® command-line interface (oc CLI) on your local workstation.

You must run the save-image command before you run the load-image commands.

Syntax

cpd-cli manage load-image \
--source-image=<source-image-location-and-name> \
[--tag=<target-image-location-and-name>]

Arguments

The load-image command has no arguments.

Options

Table 1: Command options
Option Description
--source-image The image to load in the container runtime on the client workstation.
Status
Required.
Syntax
--source-image=<source-image-location-and-name>
Default value
No default.
Valid values
A valid image location and name.

The following list includes images that you might need to load to run specific cpd-cli commands:

Load the k8s-storage-test image
  • To load the image from the IBM Entitled Registry, specify: icr.io/cpopen/cpd/k8s-storage-test:${VERSION}.amd64
  • To load the image from a private container registry, specify: ${PRIVATE_REGISTRY_LOCATION}/cpopen/cpd/k8s-storage-test:${VERSION}.amd64
Load the k8s-storage-perf image
  • To load the image from the IBM Entitled Registry, specify: icr.io/cpopen/cpd/k8s-storage-perf:${VERSION}.amd64
  • To load the image from a private container registry, specify: ${PRIVATE_REGISTRY_LOCATION}/cpopen/cpd/k8s-storage-perf:${VERSION}.amd64
--tag Specify a different image name when you load it in the container runtime on the client workstation.
Status
Optional.
Syntax
--tag=<target-image-location-and-name>
Default value
No default.
Valid values
A target image location and name that differs from the --source-image name.

Examples

Note: The following example uses the recommended installation environment variables.

It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.

Load the k8s-storage-test image that was saved from the IBM Entitled Registry
cpd-cli manage load-image \
--source-image=icr.io/cpopen/cpd/k8s-storage-test:${VERSION}.amd64
Load the k8s-storage-perf image from a private container registry
cpd-cli manage load-image \
--source-image=${PRIVATE_REGISTRY_LOCATION}/cpopen/cpd/k8s-storage-perf:${VERSION}.amd64