manage pull-image

Pull an image from a registry and load it in the container runtime on your workstation.

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 pull-image \
--from=<source-image-location-and-name> \
[--tag=<target-image-location-and-name>]

Arguments

The pull-image command has no arguments.

Options

Option Description
--from The image to pull and load in the container runtime on the client workstation.
Status
Required.
Syntax
--from=<source-image-location-and-name>
Default value
No default.
Valid values
A valid image location and name.
--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.

Table 1: Command options

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 Best practice: Setting up installation environment variables.

Pull the latest UBI Minimal image from the Red Hat registry and load it in the container runtime on the client workstation.
cpd-cli manage pull-image \
--from=registry.redhat.io/ubi8/ubi-minimal:latest
Pull the cpd-cli migrate image from the IBM® Entitled Registry and tag the image with the Cloud Pak for Data release that you are using.
cpd-cli manage pull-image \
--tag=icr.io/cpopen/cpd/zen-ldapmigrate:v4.8.8