manage save-image

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

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 image location and 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.

Save the latest UBI Minimal image from the Red Hat registry to the work directory.
cpd-cli manage save-image \
--from=registry.redhat.io/ubi9/ubi-minimal:latest