Multiarch Docker on macOS ARM64

OS Kinda/GNU/Linux
Run x86_64 (linux/amd64) containers and other Linux architectures on an Apple
Silicon Mac using Lima, Docker, and QEMU user-mode emulation. ARM64 containers
run natively; other architectures run through emulation and can be slower.
Steps
- Install Lima and the Docker command-line tools.
- Create and start a Lima VM named
docker. - Register the multiarch emulators inside the VM.
- Test the architectures provided by a container image.
Step 1: Install Lima and Docker CLI
Lima manages GNU/Linux virtual machines on macOS. The
docker VM runs the Docker daemon. The macOS docker package supplies the local
CLI, which connects to that daemon.