Save an image as a compressed TAR file in the work
directory.
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 save-image \
--from=<source-image-location-and-name>
Arguments
The save-image
command has no arguments.
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 image location and name. The following list includes common images.
-
cpd-cli
backup-restore images
-
Note: Run skopeo list-tags docker://icr.io/cpopen/cpd/cpdbr for a list of build
numbers.
- x86-64:
icr.io/cpopen/cpd/cpdbr:4.0.0-${BUILD_NUM}-x86_64
- ppc64le:
/cpd/cpdbr:4.0.0-${BUILD_NUM}-ppc64le
cpd-cli
export-import images
-
Note: Run skopeo list-tags docker://icr.io/cpopen/cpd/cpdtool for a list of build
numbers.
- x86-64:
icr.io/cpopen/cpd/cpdtool:4.0.0-${BUILD_NUM}-x86_64
- ppc64le:
icr.io/cpopen/cpd/cpdtool:4.0.0-${BUILD_NUM}-ppc64le
cpd-cli
manage image
icr.io/cpopen/cpd/olm-utils:latest
cpd-cli
migrate-ldap images
-
- x86-64:
icr.io/cpopen/cpd/zen-ldapmigrate:latest-amd64
- ppc64le:
icr.io/cpopen/cpd/zen-ldapmigrate:latest-ppc64le
- s390x:
icr.io/cpopen/cpd/zen-ldapmigrate:latest-s390x
cpd-cli
oadp backup and restore images
-
- x86-64:
icr.io/cpopen/cpd/cpdbr-oadp:4.5.0-1-x86_64
- ppc64le:
icr.io/cpopen/cpd/cpdbr-oadp:4.5.0-1-ppc64le
cpd-cli
oadp API images
-
- x86-64:
icr.io/cpopen/cpd/cpdbr-api:4.5.0-1-x86_64
- ppc64le:
icr.io/cpopen/cpd/cpdbr-api:4.5.0-1-ppc64le
cpd-cli
oadp UBI image
registry.redhat.io/ubi8/ubi-minimal:latest
cpd-cli
oadp Velero images
-
- x86-64:
icr.io/cpopen/cpd/cpdbr-velero-plugin:4.0.0-beta1-1-x86_64
- ppc64le:
icr.io/cpopen/cpd/cpdbr-velero-plugin:4.0.0-beta1-1-ppc64le
|
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.
- Save the latest UBI Minimal image from the Red
Hat registry to the work directory.
-
cpd-cli manage save-image \
--from=registry.redhat.io/ubi8/ubi-minimal:latest