Retrieving a release image digest
In order to update a cluster in a disconnected environment using the oc adm upgrade command with the --to-image option, you must reference the sha256 digest that corresponds to your targeted release image.
Procedure
-
Run the following command on a device that is connected to the internet:
$ oc adm release info -o 'jsonpath={.digest}{"\n"}' quay.io/openshift-release-dev/ocp-release:${OCP_RELEASE_VERSION}-${ARCHITECTURE}For
{OCP_RELEASE_VERSION}, specify the version of Red Hat OpenShift Container Platform to which you want to update, such as4.10.16.For
{ARCHITECTURE}, specify the architecture of the cluster, such asx86_64,aarch64,s390x, orppc64le.Example outputsha256:a8bfba3b6dddd1a2fbbead7dac65fe4fb8335089e4e7cae327f3bad334add31d -
Copy the sha256 digest for use when updating your cluster.