Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run hello-world container if --platform=linux/amd64 is used on Mac #31

Open
OlegLoewen opened this issue Aug 23, 2024 · 1 comment

Comments

@OlegLoewen
Copy link

Hello,

✅ Following approach works:
docker run -it --privileged cruizba/ubuntu-dind docker run hello-world

❌ But the following approach doesn't:
docker run -it --platform=linux/amd64 --privileged cruizba/ubuntu-dind docker run hello-world

Error Message:

root@3bae54276060:/# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1ec31eb5944: Pull complete
Digest: sha256:53cc4d415d839c98be39331c948609b659ed725170ad2ca8eb36951288f81b75
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: can't copy bootstrap data to pipe: write init-p: broken pipe: unknown.

I'm working on a Mac with M3 chip.

@cruizba
Copy link
Owner

cruizba commented Aug 29, 2024

I can't test your sceneario unfortunately, I don't have a Mac :(

I think the primary issue seems to be the multiple layers of virtualization. The --privileged option cannot be used with --platform=linux/amd64 because the container is actually run using Rosetta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants