Skip to content

Instantly share code, notes, and snippets.

@duboisf
Created October 5, 2024 13:27
Show Gist options
  • Save duboisf/0a57ff931db354e4f33ddf8d772834a9 to your computer and use it in GitHub Desktop.
Save duboisf/0a57ff931db354e4f33ddf8d772834a9 to your computer and use it in GitHub Desktop.
HOWTO configure docker buildx to be able to build multi-archi images in Linux

Multi-architecture docker builds on Linux

Install binfmt if ls /proc/sys/fs/binfmt_misc/qemu* returns nothing:

docker run --privileged --rm tonistiigi/binfmt --install all

Verify that it worked, you should see stuff by running ls /proc/sys/fs/binfmt_misc/qemu*

Create a new buildx builder:

docker buildx create \
  --name container-builder \
  --driver docker-container \
  --bootstrap --use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment