docker buildx
SafeMulti-arch builds
docker buildx build --platform linux/amd64,linux/arm64 -t <tag> .
Builds for multiple architectures at once — essential when building x86 images on Apple Silicon. --push publishes the manifest.
Examples
docker buildx build --platform linux/amd64 -t app:1.0 --load .x86 image from an ARM Mac
Syntax
docker buildx build [--platform list] [-t tag] [--push] .
Before you run it
Build only.
Related commands
- docker buildBuild an image
- docker pushPush to a registry
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store