What Is an OCI Image Digest? Choosing a Reference for Multi-Platform Deployments
An OCI image digest is a hash identifier for the bytes targeted by a descriptor, such as a manifest or image index. When you pin a deployment with `repo@sha256:…`, first check whether the digest identifies an index or one platform-specific manifest. An index digest pins a set that can include several platform variants; a manifest digest pins one OS and CPU variant. The right choice depends on whether your nodes span architectures and whether you need one exact platform build.
What Is an OCI Image Digest? Choosing a Reference for Multi-Platform Deployments
An OCI image digest is a hash identifier for the bytes targeted by a descriptor, such as a manifest or image index. When you pin a deployment with repo@sha256:…, first check whether the digest identifies an index or one platform-specific manifest. An index digest pins a set that can include several platform variants; a manifest digest pins one OS and CPU variant. The right choice depends on whether your nodes span architectures and whether you need one exact platform build.
The existing container image overview introduces layers, tags, and digests together. This article focuses on what a digest identifies in the OCI object graph and how to choose a reference for multi-platform deployment.
What does a digest hash?
An OCI descriptor includes a target's mediaType, digest, size, and other optional information. The digest is a content identifier calculated from the bytes of the targeted object using a named hash algorithm. For example, sha256:<hex> identifies the SHA-256 algorithm and its encoded result. The OCI specification recommends checking retrieved content against its digest before consuming content from an untrusted source. This helps answer: “Do these bytes match this identifier?”
Not every digest identifies the same kind of object. An OCI image is a graph of descriptors that reference other content. A platform image manifest points to a config object and layers. An image index can point to multiple manifests. The config and each layer have their own digests.
image name:tag or name@digest
│
├─ image index digest (may group multiple platforms)
│ ├─ linux/amd64 manifest digest
│ │ ├─ config digest
│ │ └─ layer digests
│ └─ linux/arm64 manifest digest
│ ├─ config digest
│ └─ layer digests
└─ single manifest digest (can also be referenced directly)Each digest in this diagram identifies different object bytes. A config digest or layer digest is not an executable image manifest just because it is a digest. Likewise, a local image Image ID, a layer DiffID, and a registry manifest digest are not interchangeable identifiers. The OCI image configuration specification defines a DiffID as the digest of the uncompressed layer tar; a manifest layer descriptor can identify the distributed layer content instead.
Should you pin an index digest or a platform manifest digest?
An OCI image index connects manifests for multiple operating systems and CPU architectures. The runtime selects an entry that matches the node platform. Therefore, if nodes with several architectures should use the same release reference, pinning the index digest is usually appropriate. The same index can still select different manifests and binaries for amd64 and arm64. The digest pins the index and the set of descriptors it references; it does not make binaries identical across CPU architectures.
If you run only one platform and need to pin that exact variant, you can use its child manifest digest. This narrows the target but may not work on a node with a different architecture. A tag is convenient, but it can move to a different index or manifest.
| Deployment condition | Typical reference to pin | What to check |
|---|---|---|
amd64 and arm64 nodes should follow one release | Multi-platform index digest | Confirm all required platform manifests are present and tested. |
| Only one platform variant is deployed | That platform's manifest digest | Confirm the node OS and architecture match the manifest. |
| A development environment should follow new versions easily | A tag may be useful | Separate that purpose from the process that records and approves a digest before production. |
Pinning an index digest does not make behavior identical on every architecture. Test each platform build, including its libraries and CPU-feature assumptions. Conversely, deploying a single-platform manifest digest to every node may fail on nodes of another architecture.
How can you identify the digest in a registry?
Suppose registry.example/team/api:2.4 is a multi-platform image. The following is a documented workflow example; it was not executed here.
docker buildx imagetools inspect registry.example/team/api:2.4Review the top-level reference digest and the list of manifests by OS and architecture. Docker documents imagetools inspect for examining registry images and platform information. Decide which object you intend to approve, then record that digest in the deployment source. To pin a multi-platform index, the reference may look like this:
registry.example/team/api@sha256:<reviewed-index-digest>Docker supports pulling by digest:
docker image pull registry.example/team/api@sha256:<approved-digest>Replace the placeholder with the actual value from the registry and check the digest reported by the pull. Docker CLI also offers a --platform option when pulling, which can help test one specific platform. For a multi-platform rollout, test pulling and running each variant separately. If a registry or tool reports a different reference form, consult its documentation for the manifest type and digest it returns.
Does a digest prove who built an image or that it is safe?
No. If you know a digest and communicate it through a trusted path, you can check whether downloaded bytes match it. But an attacker who supplies both an image and its digest can supply a matching pair. A digest addresses content identity; it does not, by itself, prove who produced or approved the content.
To verify publisher or build provenance, apply signatures, provenance/attestations, vulnerability checks, and deployment policies separately. Signature verification must use the expected digest and trust policy. When updating to a new digest, review the change and platform variants again. Digest pinning does not automatically receive updates, so maintain a regular security-update process.
Summary
An OCI digest identifies the bytes targeted by a descriptor. Indexes, platform manifests, configs, and layers can each have different digests. For one release across multiple architectures, choose the index digest; to pin one specific platform variant, choose its manifest digest and verify the platform list and runtime behavior. A digest alone does not establish provenance or approval, so use separate signature and policy checks.
Sources
[OCI Content Descriptors and Digests](https://github.com/opencontainers/image-spec/blob/main/descriptor.md)
[OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/main/image-index.md)
[OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md)
[OCI Image Configuration: DiffID](https://github.com/opencontainers/image-spec/blob/main/config.md)
[Docker Docs: docker buildx imagetools inspect](https://docs.docker.com/reference/cli/docker/buildx/imagetools/inspect/)
[Docker Docs: Pull an image by digest](https://docs.docker.com/reference/cli/docker/image/pull/)
[Docker Docs: Image digests](https://docs.docker.com/dhi/explore/security-concepts/digests/)
The OCI specifications and Docker documentation were checked on November 23, 2026. Registries and runtimes can differ in how they handle OCI references and report details, so check the documentation for the tools used in your deployment.