Skip to content

Instantly share code, notes, and snippets.

@cmaujean
Forked from Sitin/setup.sh
Created July 1, 2021 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmaujean/1c421679e546cb0195b229d5594af9ac to your computer and use it in GitHub Desktop.
Save cmaujean/1c421679e546cb0195b229d5594af9ac to your computer and use it in GitHub Desktop.
Run x86-64 Docker images on Raspberry Pi 4 (QEMU/QUS)
# Setup QEMU for x86-64 Docker images on Raspberry Pi 4
# Install Python3 and Docker first: https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl
# Install QUEMU (https://www.qemu.org/)
sudo apt-get install qemu binfmt-support qemu-user-static
# Use QUS in Docker (https://github.com/dbhi/qus) to configure x86_64 architecture
docker run --rm --privileged aptman/qus -s -- -p x86_64
# Test x86-64 image:
docker run --rm -t amd64/haskell:latest uname -m # should return "x86_64"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment