Manifests, indexes and multi-platform images
How one tag serves amd64, arm64 and more: the image index, per-platform manifests, how a client picks one, and the attestation entries that ride along.
Manifests, indexes and multi-platform images
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- An image manifest describes one platform's image: one config and an ordered list of layers. An image index lists several manifests, each labelled with os, architecture and sometimes a variant.
- A multi-platform tag points at an index. The client fetches it, picks the entry matching its own platform and pulls only that image.
- The OCI image index and Docker's older manifest list are the same idea with different media types, and registries and clients accept both.
- Variants matter on ARM: arm/v6, arm/v7 and arm64/v8 are different builds, and an older variant can run on a newer CPU but not the reverse.
- BuildKit adds attestation manifests to the index with platform unknown/unknown. They hold the SBOM and provenance and are never run.
- --platform forces a choice. On a host of another architecture the container then runs under QEMU emulation, which works but is slow.
One name, many machines
Your laptop is an Apple silicon Mac, CI runs on x86, production runs on AWS Graviton, and someone’s home lab is a Raspberry Pi. All four run docker pull postgres:17 and each gets a binary for its own CPU. The tag didn’t change. Something between the name and the layers made the choice. That something is the image index, and once you can read one you can debug “exec format error”, “no matching manifest” and “why is this container so slow on my Mac”.
Manifest and index
From the OCI image spec, two JSON documents:
- An image manifest describes one image: a
configdescriptor and an orderedlayerslist. Its config names the platform it was built for. - An image index lists manifests, each with a
platformobject (os,architecture, optionalvariantandos.version).
Docker’s older format, the “manifest list” (application/vnd.docker.distribution.manifest.list.v2+json), is the same idea, and the OCI index (application/vnd.oci.image.index.v1+json) is its standard form. Registries and clients handle both. It works like a train timetable with a separate column per line: the tag is the station name, the index is the board, and you only read the column for your train.
Reading a real index
I fetched alpine:latest from Docker Hub. It’s an OCI index with 16 entries: 8 images and 8 attestation manifests.
platform manifest digest size
linux/amd64 sha256:0f49f331d921 1022
linux/arm/v6 sha256:24744e247e00 1023
linux/arm/v7 sha256:d8d3f7634d0a 1023
linux/arm64/v8 sha256:1829893486be 1025
linux/386 sha256:55d68c85222d 1018
linux/ppc64le sha256:7ed963991a76 1025
linux/riscv64 sha256:73e451a4baad 1025
linux/s390x sha256:5731f4bc195f 1021
unknown/unknown ×8 attestation manifests, 566–838 bytes each
Each attestation entry carries vnd.docker.reference.type: attestation-manifest and vnd.docker.reference.digest naming the image it describes. I opened the one for amd64. Its two layers are in-toto statements: an SPDX SBOM (79,673 bytes) and SLSA v0.2 provenance (5,639 bytes). The platform unknown/unknown keeps older clients from ever trying to run them. Docker Hub also answers the OCI 1.1 referrers API, but for this image it returned an empty list, since Docker keeps attestations inside the index instead.
How the client chooses
A pull of a tag fetches the index, matches the host’s platform and fetches only that manifest and its layers. ARM makes this interesting, because variants are real differences: an ARMv6 binary runs on an ARMv7 CPU, but not the other way round. I wrote a simplified stand-in for containerd’s matcher and ran it against the real index:
linux/amd64 -> sha256:0f49f331d921 (variant -)
linux/arm64 -> sha256:1829893486be (variant v8)
linux/arm/v7 -> sha256:d8d3f7634d0a (variant v7)
linux/arm/v6 -> sha256:24744e247e00 (variant v6)
linux/riscv64 -> sha256:73e451a4baad (variant -)
windows/amd64 -> no matching manifest
linux/mips64le -> no matching manifest
The last two are what Docker reports as no matching manifest for ... in the manifest list entries. The real matcher has more rules. Engine 29.10’s notes, for example, mention preferring the highest ARM64 variant the CPU supports. The principle is the same.
Two practical consequences:
- Pin the index digest. It covers every platform, so one pin works on x86 CI and Graviton production. A platform manifest’s digest works only on that architecture.
- Entries are separate builds. Nothing forces every platform’s image to be rebuilt together. The devops registry lesson found nginx’s riscv64 entry a version behind the rest. Check the per-platform annotations if it matters.
Forcing a platform
docker pull --platform linux/amd64 postgres:17
docker run --rm --platform linux/amd64 alpine uname -m # x86_64, even on an ARM Mac
docker buildx imagetools inspect alpine:3.24 # the index, straight from the registry
On a host of a different architecture, that container runs through QEMU user-mode emulation registered with the kernel’s binfmt_misc. Docker Desktop sets this up for you, and on Apple silicon it can use Rosetta instead of QEMU for amd64 images. It works, but CPU-heavy work can be several times slower, and the classic failure without it is exec format error: the kernel was handed a binary for another CPU.
Locally, the image store decides what you can keep. The classic store holds one platform per tag. The containerd image store, the default on fresh Engine 29 installs, can hold several and push them as one index, which is why multi-platform builds no longer need a registry in between. Building them is the job of multi-platform builds.
About the video
The embed is all of “Working With Multi-Platform Container Images (OCI Index/ Manifest List)”, a DevConf.CZ 2024 talk by Luigi Mario Zuccarelli and Alex Guidi, published June 2024, 24 minutes. The description says it opens up the structure that tools like Podman and Docker hide, the index and manifest list behind a multi-platform image. It has no chapters, and as a conference recording its audio is less polished than a studio explainer. It doesn’t cover Docker’s attestation entries or the containerd image store, which the lesson adds. English was judged from the title, description and its English caption track. ToddySM’s short video in deeper walks through an index and a manifest side by side.
What was run: alpine:latest’s index, its amd64 manifest and attestation manifest were fetched from Docker Hub’s registry API with a short Python client, and the referrers endpoint was queried the same way. The platform choices came from a Python stand-in for containerd’s matcher, not from containerd itself. Nothing ran in Docker. Media types and fields are from the OCI image spec 1.1.1, checked 2026-11-28.
Where this fits
Every image starts from a base. Next, how to pick one: choosing a base image.
Check yourself
docker pull fails with 'no matching manifest for linux/arm64/v8 in the manifest list entries'. What does that mean?
The tag points at an index that has no entry for your platform. The publisher didn't build an arm64 image, so build one yourself, find another image, or run the amd64 one under emulation with --platform linux/amd64.
Why might the same tag give a different version on a Raspberry Pi than on a laptop?
Each platform entry in the index is a separate image, and nothing forces them to be rebuilt together. One architecture's build can lag behind, as the devops lesson found for nginx on riscv64.
What are the entries with platform unknown/unknown in an image index?
Attestation manifests that BuildKit attaches, one per image. They hold in-toto statements such as an SPDX SBOM and SLSA provenance, and an annotation names the image digest they describe.
Why is pinning the index digest usually better than pinning one platform's manifest digest?
The index digest covers every platform, so the same pin works on amd64 and arm64 hosts while still fixing the exact bytes. A platform digest only works on that one architecture.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.