colima icon indicating copy to clipboard operation
colima copied to clipboard

How can I disable emulation?

Open sdemura opened this issue 1 year ago • 1 comments

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 ...

sdemura avatar Sep 01 '22 16:09 sdemura

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)

sdemura avatar Sep 07 '22 18:09 sdemura

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.

abiosoft avatar Sep 18 '22 07:09 abiosoft