manage copy-image

Copy an image from one location to another.

Extended description

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

Syntax

cpd-cli manage copy-image \
--from=<source-image-location-and-name> \
--to=<target-image-location-and-name>

Arguments

The copy-image command has no arguments.

Options

Table 1: Command options
Option Description
--from The source image to save.
Status
Required.
Syntax
--from=<source-image-location-and-name>
Default value
No default.
Valid values
A valid source image location and name.
--to The registry to copy the image to, including the name of the image.
Status
Required.
Syntax
--to=<target-image-location-and-name>
Default value
No default.
Valid values
A valid registry address and 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.

Copy the latest olm-utils-v4 image from the IBM Entitled Registry to the intermediary container registry.
cpd-cli manage copy-image \
--from=icr.io/cpopen/cpd/olm-utils-v4:${VERSION}.amd64 \
--to=127.0.0.1:12443/olm-utils-v4:latest