Skip to content

Instantly share code, notes, and snippets.

@natevw
Created April 9, 2025 18:50
Show Gist options
  • Save natevw/9cd1c720398789a7dc5392d571058f7d to your computer and use it in GitHub Desktop.
Save natevw/9cd1c720398789a7dc5392d571058f7d to your computer and use it in GitHub Desktop.
Simple Debian cross-platform Docker via Qemu binfmt thing proof-of-concept
# via <https://docs.docker.com/build/building/multi-platform/#simple-multi-platform-build-using-emulation>
# and <https://wiki.debian.org/QemuUserEmulation>
# sudo apt install binfmt-support qemu-user-static
# /sbin/update-binfmts --display
# docker buildx build --platform linux/amd64 . -t testx
# docker run --rm --platform=linux/amd64 testx cat /arch
FROM alpine
RUN uname -m > /arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment