Build and publish a multi-platform image.
Section: Buildx Build Workflows
Build multi-platform image
bash
bash
docker buildx build --platform linux/amd64,linux/arm64 --push -t ghcr.io/acme/myapp:1.0.0 .Explanation
Clients pull the matching platform automatically.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Buildx Build Workflows
Build and load into local daemon
Build and load the result into the local Docker image store.
Inspect remote image platforms
Inspect remote image index details and available platforms.