Created
April 9, 2025 18:50
-
-
Save natevw/9cd1c720398789a7dc5392d571058f7d to your computer and use it in GitHub Desktop.
Simple Debian cross-platform Docker via Qemu binfmt thing proof-of-concept
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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