Skip to content

Guides

How to build multi-platform images fast

Adding linux/arm64 makes the build take twenty minutes.

6 min read

Adding linux/arm64 makes the build take twenty minutes.

Why it happens

QEMU emulation runs the arm64 build on x64 hardware, which is 5–40× slower for anything that compiles.

How to fix it

  1. Build each architecture on a native runner of that architecture
  2. Push by digest from each leg, then merge with docker buildx imagetools create
  3. Keep a separate cache per architecture
  4. Only fall back to QEMU for images that do no compilation

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.