How do you speed up multi-arch builds?
IntermediateProductionBuild Performance & CI
Answer
QEMU emulation is 5-20x slower. Prefer cross-compilation with BUILDPLATFORM in the build stage, or use native builders per architecture (ARM runners such as GitHub ubuntu-24.04-arm, Graviton) joined with buildx create --append, then merge manifests with docker buildx imagetools create. Docker Build Cloud offers managed native builders.
More on Build Performance & CI
How do you make Docker builds fast in CI where runners are ephemeral?BeginnerWhat are the cache backends in buildx?BeginnerWhy does `inline` cache often disappoint?AdvancedHow do you structure a Python Dockerfile for the best caching and size?IntermediateHow do you structure a Node.js production image?IntermediateHow do you build a small Java image?Beginner