-
Notifications
You must be signed in to change notification settings - Fork 168
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
Operation Not Permitted Error from Rocker RStudio Image on M1 MacBook #287
Comments
It seems duplicate of #144. |
Perhaps the x86 version will work with the latest version of Docker Desktop for Mac if Rosetta 2 emulation for amd64 architecture is enabled. Details are explained here: https://docs.docker.com/desktop/mac/apple-silicon/ I can't test this myself either. |
Unfortunately, this does not seem to work. |
I see, that's unfortunate. I heard one report of someone getting the PrairieLearn version of Rocker to work locally on an M1 Mac, so maybe you'd like to try that version, but it may not be configured for your needs: https://github.com/PrairieLearn/PrairieLearn/tree/master/workspaces/rstudio |
Do you have any detail or link to that report and/or a working example? |
I had verbal confirmation from @barbehenna works with me on things involving quite a bit of docker that this worked on his new M1 macbook. Standard launch of Docker in daemon mode to have RStudio exposed via the network as usual. All this ... surprised me which is why I brought it up to @echuber2 who help us here / essentially built and tweaked this thing for our use in the test and grade software we use. @echuber2 may know best what the delta is to upstream -- we lifted on authentication step not needed in our setup as I recall, and added (iirc) one I am still confused as to how this can have worked when it didn't for everybody else. |
@gaojunxuan Can you try out this script on your Mac? Supposedly, this works with macOS Monterey 12.1 on an M1 Pro. Docker version 20.10.11, Docker Desktop 4.3.2. Thanks to @barbehenna for testing this. https://gist.github.com/echuber2/2dd51ab799411cbd4894f8a85a3db52c |
Yes! This works. I have not tried all the features yet, but at least RStudio seems to work fine. I wonder if it is because of some file/folder permission issue as the "Operation not permitted" error message I got when trying to use the vanilla Rocker image seems it was trying to modify some permission settings and failed.
|
Interesting, thanks a lot for trying it. The PrairieLearn version is set up to run as a non-root user. I'm still not sure why the default version of Rocker works with non-M1 chips by default, if this is the issue. Maybe it's not an ARM issue per se but a difference in how the M1 kernels handle permissions. |
I dug into this a bit, and wasn't able to get a reproducible image that worked but did get past this error. Running as a non-root user is indeed the key to getting past this image. When running an x86 image on ARM, Docker uses qemu to run the code, and for some reason the setuid code does not work in this emulation. I was able to get RStudio to run by starting |
@mattwigway Have you tried the gist here? https://gist.github.com/echuber2/2dd51ab799411cbd4894f8a85a3db52c Interested if it works for you too (or not). |
Duplicate of #144 |
Hi,
I try to run the following command to have the RStudio Server run on an M1 MacBook with macOS Monterey.
But I keep having the following error after the login page.
Any suggestions would be highly appreciated. Thank you very much!
The text was updated successfully, but these errors were encountered: