Pages

Topics

Tools

↑↓navigate↵openescclose
All guides

Docker: no matching manifest for linux/arm64 fix

The image tag has no layer for your platform. Build multi-arch, pin a platform that exists or publish arm64 variants instead of forcing --platform.

~5 min readDocker
#docker#multi-arch#arm64#images
Bold white headline reading NO MANIFEST beside a cyan image stack with an amber missing arm64 layer.

Introduction & Quick Summary

On an Apple Silicon laptop, or on an arm64 server or cluster node, the pull stops immediately:

code
$ docker pull mysql:5.7 no matching manifest for linux/arm64/v8 in the manifest list entries

Quick answer: the image tag is published as a manifest list whose entries cover only some platforms, and yours is not one of them. Docker resolved the host platform to linux/arm64/v8, asked the registry for that entry, and the registry had nothing to return. Three fixes exist, and they are not interchangeable: run the amd64 image under emulation, build an arm64 variant yourself, or use a tag that already ships both.

# 1. inspect what the tag contains docker buildx imagetools inspect mysql:5.7 # 2. run the amd64 image under emulation (slower, works today) docker run --platform linux/amd64 mysql:5.7 # 3. build your own multi-arch image docker buildx build --platform linux/amd64,linux/arm64 -t registry.example.com/api:1.2.0 --push .

The error is about the image, not about Docker being broken, and it appears in docker pull, docker run, docker compose up and docker build (for the FROM line). The rest of this guide shows how to read a manifest list, which fix suits a development laptop versus a production cluster, and how the same root cause reappears later as exec format error.

Core Mechanics, Signatures & Reproducible Setup

A multi-platform image is not one image. The tag points at a manifest list (or an OCI image index), which holds one manifest per platform. Docker sends the host platform in the pull request, and the registry returns the matching leaf manifest, or nothing.

bash
docker buildx imagetools inspect mysql:5.7 # Name: docker.io/library/mysql:5.7 # MediaType: application/vnd.docker.distribution.manifest.list.v2+json # Manifests: # Platform: linux/amd64 # Platform: linux/arm64/v8 <- absent for this tag

The platform string has up to three parts: os/arch/variant. linux/arm64/v8 is the usual arm64 Linux value; linux/amd64 has no variant. Docker compares these values literally, so an image published for linux/arm64 without a variant normally still matches, but a tag published only for linux/amd64 never matches an arm64 host.

docker version --format '{{.Server.Arch}} / {{.Server.Os}}' # arm64 / linux docker run --rm --platform linux/amd64 alpine uname -m # x86_64 (emulated) docker run --rm alpine uname -m # aarch64 (native)

A reproducible case, using a tag that is amd64-only on many registries:

bash
docker pull mysql:5.7 # no matching manifest for linux/arm64/v8 in the manifest list entries docker pull --platform linux/amd64 mysql:5.7 # 5.7: Pulling from library/mysql ... Status: Downloaded newer image

docker pull --platform affects only the image that command fetches. It does not change the default for later commands, and it does not change what a docker build produces.

Key Comparison Table

ApproachCommandSpeedCorrectness
emulation--platform linux/amd642 to 20 times slowerruns x86 code, fine for dev
native multi-arch buildbuildx build --platform=...one build per platformbest for images you own
alternative taguse a tag with an arm64 entrynativedepends on upstream
default platform overrideDOCKER_DEFAULT_PLATFORM=linux/amd64slow everywherehides the real gap
remote builder--builder on an amd64 hostnative theregood for CI
Where the error appearsWhat is happeningFirst check
docker pulltag has no entry for host archimagetools inspect
docker runimage missing locally, implicit pullsame
docker compose upno platform: in serviceadd platform: or build multi-arch
docker build at FROMbase image lacks target archbase image manifest
exec format error at startimage for the wrong arch did startuname -m inside
HostTypical host platformTags that commonly lack it
Apple Silicon Maclinux/arm64/v8older database and vendor tags
arm64 cloud VMlinux/arm64/v8same
amd64 serverlinux/amd64some arm64-first projects
Windows with WSL2linux/amd64rare

Practical Edge Cases, Error Fixes & Deep Dive Code Examples

1. Read the manifest before choosing a fix

docker manifest inspect works without pulling and without a buildx builder:

bash
docker manifest inspect -v postgres:16 | jq -r '.manifests[].platform | "\(.os)/\(.architecture)/\(.variant // "-")"'

If the output lists only linux/amd64, emulation or building is the only route. If it lists linux/arm64 but the host asks for linux/arm64/v8, an older Docker version that does not normalise the variant can be the cause, and updating Docker fixes it.

2. Emulation is for development, not for production

Running amd64 images on arm64 uses QEMU inside Docker Desktop, or Rosetta when that option is enabled. Database workloads are several times slower and some JIT-based runtimes crash outright:

services: db: image: mysql:5.7 platform: linux/amd64 ports: ["3306:3306"] environment: MYSQL_ROOT_PASSWORD: example

Set platform: per service rather than globally; a global DOCKER_DEFAULT_PLATFORM=linux/amd64 makes every image emulated, including the ones that have a native arm64 build, and slows the whole development loop.

3. Build a multi-arch image for code you own

BuildKit builds each platform and pushes a manifest list, so any host can pull a native image later:

bash
docker buildx create --name multiarch --use docker buildx inspect --bootstrap docker buildx build \ --platform linux/amd64,linux/arm64 \ -t registry.example.com/api:1.2.0 \ --push .

--push (or --output type=registry) is required for a manifest list; --load can only load a single-platform image into the local store, and combining both flags fails.

For compiled languages, build on the build host's architecture and cross-compile to the target, so no step runs under emulation:

dockerfile
FROM --platform=$BUILDPLATFORM golang:1.23 AS build ARG TARGETOS TARGETARCH WORKDIR /src COPY . . RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/api ./cmd/api FROM gcr.io/distroless/static:nonroot COPY --from=build /out/api /api ENTRYPOINT ["/api"]

$BUILDPLATFORM, $TARGETOS and $TARGETARCH are BuildKit-provided values; without them the compiler would emit binaries for whichever platform the builder happens to be.

4. CI pipelines

A CI runner is usually amd64. Building arm64 there requires an emulation layer, and pushing both platforms requires a builder that can write a manifest list:

- uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 - uses: docker/build-push-action@v6 with: platforms: linux/amd64,linux/arm64 push: true tags: registry.example.com/api:1.2.0

setup-qemu-action registers the binfmt handlers that let the amd64 kernel execute arm64 binaries; without it the arm64 half of the build dies with exec format error during RUN steps. For large compiled projects, a native arm64 runner is much faster than emulation.

5. Registries that lose the manifest list

Copying an image with docker pull, docker save and docker load flattens it to the platform that was pulled. The copy in the private registry then has a single manifest, and arm64 hosts get the same error against the mirror:

bash
# keeps every platform skopeo copy --all docker://docker.io/library/postgres:16 docker://registry.example.com/postgres:16 # flattens to one platform docker pull postgres:16 && docker tag postgres:16 registry.example.com/postgres:16 && docker push registry.example.com/postgres:16

Mirrors, air-gapped registries and image-scanning proxies are the usual places where this happens. Compare the manifest type before and after the copy.

6. When it becomes exec format error

A single-arch image forced onto the wrong platform fails at container start rather than at pull:

standard_init_linux.go:228: exec user process caused: exec format error

That means the image was pulled (or built) for another architecture and the kernel refused the binary. Check the running architecture from inside the container and the node architecture in Kubernetes:

bash
kubectl get nodes -o wide kubectl get pod api-0 -o jsonpath='{.spec.nodeName}{"\n"}' kubectl exec api-0 -- uname -m

In Kubernetes the pull error names the node's platform, which is why the same Deployment can be healthy on an amd64 pool and failing on an arm64 one. Use the CIDR calculator when the failure turns out to be registry network access rather than architecture, and the Docker Compose validator to check the platform: key before restarting the stack.

Common Compilation/Runtime Mistakes & Version Gotchas

  • Assuming --platform changes the built image. It selects what to pull or what to target; for a build you must pass --platform to buildx build and push the result.
  • Using --load with several platforms. Only one platform fits in the local image store; the command fails with an export error that looks unrelated.
  • Pinning an old database tag in Compose. Tags without arm64 entries are frozen; moving to a newer minor version is often the smallest fix.
  • Copying images by save and load. The manifest list is lost, and the mirror serves one architecture to everybody.
  • Version notes. BuildKit is the default builder in current Docker releases, but docker build without a buildx builder still cannot produce a manifest list; docker buildx build --push is the supported path. Docker Desktop's Rosetta option applies to amd64 containers on Apple Silicon only.
  • Reading the platform from the host only. In a cluster, the node architecture decides; a laptop that pulls fine says nothing about the node that fails.

Official documentation: Multi-platform builds and the docker manifest reference.

Official references

primary documentation

The Docker documentation that defines the behaviour this guide explains.

Try matching browser tools

All tools

Small utilities that fit Docker work — they run entirely in this browser tab, so nothing you paste leaves your device.

All Docker guides

More in Docker

All Docker guides

The guides filed next to this one in Docker, in library order.