colima
colima copied to clipboard
How can I disable emulation?
Question
Is it possible to disable x86 emulation on m1 Macs? I want a non-arm image to not run at all instead of being just given a warning when using docker run ...
Feels hacky, but this works...
sudo chmod -x $(which qemu-system-x86_64)
❯ docker pull --platform=linux/amd64 alpine:latest
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I think this is more of a docker question than Colima's. I do not know of any other way other than explicitly specifying --platform flag.