multi-platform build
Building one image for several processor architectures at once and publishing them under one tag.
In more detail
docker buildx build --platform linux/amd64,linux/arm64 builds each variant, using emulation or remote builders for the architectures your machine lacks, and pushes an image index that points to all of them. It prevents the classic failure where an image built on an Arm laptop will not start on an Intel server.
Example
docker buildx build --platform linux/amd64,linux/arm64 -t myorg/app:1.0 --push .Related terms
- CPU architecture — The family of instructions a processor understands, such as 64-bit Intel (amd64) or 64-bit Arm (arm64).
- image index — A list that points to several versions of the same image, one per processor architecture and operating system.
- docker buildx — The Docker command for advanced BuildKit features, such as building for several platforms or on remote builders.
Taught in
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers