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
Option | Description |
---|---|
--from |
The source image to save.
|
--to |
The registry to copy the image to, including the name of the
image.
|
Examples
Note: The following example uses the recommended installation environment variables.
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- Copy the latest
olm-utils
image from the IBM® Entitled Registry to the intermediary container registry . -
cpd-cli manage copy-image \ --from=icr.io/cpopen/cpd/olm-utils:latest \ --to=127.0.0.1:12443/olm-utils:latest