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

Taught in

References