1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/update-restricted-image-digests.adoc
2024-09-12 10:19:11 -04:00

30 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * updating/updating_a_cluster/updating_disconnected_cluster/disconnected-update.adoc
:_mod-docs-content-type: PROCEDURE
[id="update-disconnected-image-digests_{context}"]
= 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:
+
[source,terminal]
----
$ 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 {product-title} to which you want to update, such as `4.10.16`.
+
For `{ARCHITECTURE}`, specify the architecture of the cluster, such as `x86_64`, `aarch64`, `s390x`, or `ppc64le`.
+
.Example output
[source,terminal]
----
sha256:a8bfba3b6dddd1a2fbbead7dac65fe4fb8335089e4e7cae327f3bad334add31d
----
. Copy the sha256 digest for use when updating your cluster.