orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
4.42k stars 31 forks source link

Not able to run linux/amd64 in M1 Pro with Orbstack (exec /bin/sh: exec format error) #1065

Open jdiegosierra opened 1 month ago

jdiegosierra commented 1 month ago

Describe the bug

I'm not able to run different architectures with my M1 Pro.

To Reproduce

docker run --rm -ti --platform "linux/amd64" alpine sh

docker run --rm -ti --platform "linux/amd64" alpine sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
Digest: sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
Status: Downloaded newer image for alpine:latest
exec /bin/sh: exec format error

Expected behavior

No response

Diagnostic report (REQUIRED)

OrbStack info: Version: 1.4.3 Commit: 75d38a2c2d9a2b42d64378a8f50f31d4d566df10 (v1.4.3)

System info: macOS: 14.2.1 (23C71) CPU: arm64, 10 cores CPU model: Apple M1 Pro Model: MacBookPro18,1 Memory: 16 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-03-21T09-30-12.921926Z.zip

Screenshots and additional context (optional)

image image image

docker context list
NAME            DESCRIPTION                               DOCKER ENDPOINT                                   ERROR
default         Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
desktop-linux   Docker Desktop                            unix:///Users/dsierra/.docker/run/docker.sock
orbstack *      OrbStack                                  unix:///Users/dsierra/.orbstack/run/docker.sock
kdrag0n commented 1 month ago

Please share a diagnostic report as required by the issue template. Help > Upload Diagnostics

jdiegosierra commented 1 month ago

Please share a diagnostic report as required by the issue template. Help > Upload Diagnostics

Done

kdrag0n commented 1 month ago

Can you paste the output here?

jdiegosierra commented 1 month ago

Can you paste the output here?

OrbStack info: Version: 1.4.3 Commit: 75d38a2c2d9a2b42d64378a8f50f31d4d566df10 (v1.4.3)

System info: macOS: 14.2.1 (23C71) CPU: arm64, 10 cores CPU model: Apple M1 Pro Model: MacBookPro18,1 Memory: 16 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-03-21T09-30-12.921926Z.zip

kt81 commented 3 weeks ago

@jdiegosierra Are you using Minikube on your system? It has been reported that certain versions of Minikube can cause this problem. https://github.com/kubernetes/minikube/issues/18250

san983 commented 1 week ago

Hi! I'm running into the same, and I'm not using minikube

OrbStack info: Version: 1.5.1 Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)

System info: macOS: 14.4.1 (23E224) CPU: arm64, 10 cores CPU model: Apple M1 Pro Model: MacBookPro18,1 Memory: 16 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-05-07T00-10-01.154314Z.zip