What Is an OCI Image Index? Understand Platform-Specific Manifest Selection
An OCI image index groups image manifests for multiple platforms under one image reference. Learn what its descriptors and platform fields mean, how clients choose a manifest, and how to investigate an unexpected selection.
What Is an OCI Image Index? Understand Platform-Specific Manifest Selection
An OCI image index is a document that groups manifests for multiple platforms under one image reference. For example, team/api:2.4.1 can point to manifests for Linux AMD64 and ARM64. A client compares the index's operating-system and CPU information with its environment and selects a candidate. An index does not guarantee that an image will run on every node: it must contain a suitable platform entry and compatible image.
The OCI image format guide explains the overall index-to-manifest hierarchy, while the image digest guide explains which object a digest pins. This article focuses on interpreting platform metadata and investigating selection.
What is inside an index?
In the OCI Image Specification, an image index is JSON with media type application/vnd.oci.image.index.v1+json. Its key property is the manifests array. Each entry is a descriptor for another manifest or nested index and typically includes a media type, byte size, and digest. If a platform object is present, os and architecture are required. Optional fields include CPU variant, operating-system os.version, and required OS capabilities in os.features.
| Field | Meaning | Caution |
|---|---|---|
mediaType | Identifies an image manifest or another index | The specification says an unknown value must not itself cause an error; support for processing it still depends on the client. |
digest, size | Identify the target object and describe its byte size | They describe the referenced object, not the tag or platform name. |
platform.os | For example, linux or windows | Matching the OS family may not satisfy version or feature requirements. |
platform.architecture | For example, amd64, arm64, or arm | CPU family; ARM variants may differ. |
platform.variant | For example, arm/v7 or arm64/v8 | Check that it fits the required CPU instruction set and ABI. Implementations may differ in supported values. |
os.version, os.features | OS version and required capabilities, especially for Windows | An implementation may refuse a manifest that is incompatible with the host. |
The specification recommends platform metadata for platform-specific targets. Not every descriptor necessarily represents a runnable OS image: entries may omit platform data or show unknown, and an index can contain auxiliary outputs such as build attestations. Interpret these separately from workload images.
How does a client choose a manifest?
A client usually compares the node's OS and CPU architecture with the index entries. A Linux ARM64 node, for example, should consider the linux/arm64 entry rather than linux/amd64; ARM variant and Windows os.version or os.features can add constraints.
The OCI specification says clients SHOULD use the first entry that matches their requirements when several match. This is not a guarantee that every runtime resolves every alias or conflict identically. Avoid duplicate platform entries or entries that claim the same platform for incompatible binaries. Metadata helps choose a candidate; it does not prove that the binary really supports the hardware.
As a hypothetical example, suppose an index lists linux/amd64, linux/arm64/v8, and windows/amd64. A Linux ARM64 node selects the ARM64 candidate, but the application may still fail if its binary was built for another architecture or assumes unsupported CPU features. The index does not inspect the binary.
How can I inspect an index?
With Docker Buildx, inspect a registry reference using these documented commands (not run in this environment):
docker buildx imagetools inspect team/api:2.4.1
docker buildx imagetools inspect --raw team/api:2.4.1The first command presents digest, media type, and platform entries in a readable form. --raw prints JSON so you can inspect each descriptor's digest, size, mediaType, and platform. A tag can later point to a different index, so record the inspection time and digest during incident analysis. Output can vary with the image and Buildx version.
What should I check when selection fails?
Compare the node's OS and architecture with the listed entries. If execution reports an architecture error such as exec format error, verify with build records that the selected image's binary actually targets that platform. If no entry exists, build for the required platform and include it in the release. If an entry exists but is not selected, check variant, Windows version/features, duplicate platform declarations, and the runtime's platform-handling behavior.
An attestation or unknown/unknown entry in Buildx output is not automatically a missing runnable image. Review annotations and descriptor relationships to identify auxiliary outputs, then separately confirm that the workload platform is present. Pinning an arbitrary child manifest digest can break other architectures. For multi-platform deployments, consider the index digest; to pin one exact platform, use that platform's manifest digest. See the digest guide.
Summary
An image index groups platform-specific manifests behind one reference and helps a client choose a candidate for its runtime requirements. Inspect the descriptors and platform labels, then independently verify binary compatibility. Account for the different scopes of an index digest and a child-manifest digest in deployment policy.
References
[OCI Image Specification: Image Index](https://github.com/opencontainers/image-spec/blob/main/image-index.md)
[Docker Docs: docker buildx imagetools inspect](https://docs.docker.com/reference/cli/docker/buildx/imagetools/inspect/)
[Docker Docs: Multi-platform builds](https://docs.docker.com/build/building/multi-platform/)
[OCI image format guide](https://knowledge.linkspot.net/en/articles/ab92d35f-73b7-4a7f-8165-21a86c3f1180)
[Image digest guide](https://knowledge.linkspot.net/en/articles/a83c72f7-214a-43a0-822d-7c45ce0b9768)
The OCI Image Specification and Docker documentation were checked on 2026-11-23. The example commands are documented procedures and were not run here. Platform matching details and supported options can vary by client and runtime.