-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Feature Request] Is it possible to run Mojo in a Docker container on M2 Max silicon? #588
Comments
There is a Dockerfile in the repo, but it also fails when I am trying to build a container. This time, however, with a different error.
|
Ok, it looks like that one is an issue of running Docker on an Apple's silicon. There is a solution that helped me to get to the next building stage. (Still running.) Here is the change to the Dockerfile. FROM --platform=linux/amd64 ubuntu:20.04 |
@jackos ah, I see, thank you! |
I have just made available a docker imager with mojo ready for use : docker pull hananytolba/mojo:0.2.1 for use docker run -ti hananytolba/mojo:0.2.1 bash and inupt mojo |
same issue, using the dockerfile /~https://github.com/modularml/mojo/blob/main/examples/docker/Dockerfile.mojosdk and opening in a dev container in vs code sort of works. It can run the python cells but it fails on mojo cells. eg from https://www.modular.com/blog/an-easy-introduction-to-mojo-for-python-programmers fails on the cell:
with:
but other mojo cells work... so I'm not sure if this is a separate issue. |
Review Mojo's priorities
What is your request?
I am trying to run Mojo locally on my M2 Max silicon desktop. I know that it is not supported natively, but I thought that running in Docker container would work. However, it looks like it is not the case. Running in a container derived from
ubuntu:latest
returns the error.Here is my Dockerfile.
Does it mean that running Mojo on M2 chips isn't possible at the moment? I don't have in-depth knowledge of how Docker containers work. So, I don't know if it is an expected behavior and this kind of virtualization is just not supported (should use a "real" Linux machine), or I am doing it wrong.
Thank you!
What is your motivation for this change?
It would be great to have an option of running Mojo in a Docker container for systems that don't support it natively.
Any other details?
No response
The text was updated successfully, but these errors were encountered: