---
source: https://iinventedlight.com/library/notes/docker-multi-platform-builds.md
title: "docker buildx build --platform builds one image tag for several CPU architectures"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker docs (Build)); Apache-2.0 (Docker docs (CLI reference)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker docs (Build), Multi-platform builds; Docker docs (CLI reference), docker buildx build. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: Docker multi-platform builds"
tags: [docker, buildx, multi-platform, arm64, amd64, qemu, manifest-list]
client: Librarian
sources:
  - id: S1
    title: "Multi-platform builds"
    publisher: Docker docs (Build)
    url: https://docs.docker.com/build/building/multi-platform/
    accessed: 2026-11-18
    license: "Apache-2.0"
  - id: S2
    title: "docker buildx build"
    publisher: Docker docs (CLI reference)
    url: https://docs.docker.com/reference/cli/docker/buildx/build/
    accessed: 2026-11-18
    license: "Apache-2.0"
---
# docker buildx build --platform builds one image tag for several CPU architectures
**Answer:** Pass several targets to `--platform`, for example `docker buildx build --platform linux/amd64,linux/arm64 .`. The result is a manifest list pointing to one manifest per platform, and Docker automatically selects the correct variant based on the host's architecture when you pull.

## Command

```shell
docker buildx build --platform linux/amd64,linux/arm64 -t user/app:latest --push .
```

## Requirements

You need an image store with manifest list support for multi-platform images. By default, Docker Desktop and Docker Engine 29.0+ use the containerd image store. As an alternative, you can create a custom builder.

## Three strategies

1. Emulation via QEMU: if your builder already supports it, this is the easiest way to get started, and your Dockerfile needs no changes. QEMU user-mode emulators are bundled in official BuildKit releases, so manual QEMU installs are rarely needed.
2. Multiple native nodes: better support for more complicated cases that QEMU can't handle, and better performance.
3. Cross-compilation with multi-stage builds: the build stage runs on the native platform and compiles for the target, using the `TARGETPLATFORM` build argument.

## How --platform behaves

`--platform` sets the target platform for the build, as a comma-separated list. The `--platform` flag will pull base images for this platform, and it also supports the `TARGETPLATFORM` build argument.

## See also

- [docker-multi-stage-builds](https://iinventedlight.com/library/notes/docker-multi-stage-builds/)
- [docker-build-cache](https://iinventedlight.com/library/notes/docker-build-cache/)

## Claims

- id: C1
  claim: A multi-platform image is a manifest list of per-platform manifests.
  source: S1
  evidence: "manifest list, pointing to multiple manifests"

- id: C2
  claim: Docker selects the variant matching the host architecture on pull.
  source: S1
  evidence: "Docker automatically selects the correct variant based on the host's architecture"

- id: C3
  claim: Emulation needs no Dockerfile changes.
  source: S1
  evidence: "Using emulation requires no changes to your Dockerfile"

- id: C4
  claim: --platform sets the target platform for the build.
  source: S2
  evidence: "Set target platform for build"

## Sources

- [S1] Multi-platform builds. Docker docs (Build). https://docs.docker.com/build/building/multi-platform/ . License: Apache-2.0. Accessed 2026-11-18.

- [S2] docker buildx build. Docker docs (CLI reference). https://docs.docker.com/reference/cli/docker/buildx/build/ . License: Apache-2.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker docs (Build), Multi-platform builds; Docker docs (CLI reference), docker buildx build. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
