-
Notifications
You must be signed in to change notification settings - Fork 182
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
Running RStudio Server with unprivileged user not possible #592
Comments
I believe that the RStudio Server started by the
I don't think you have to do it. A simple Dockerfile like the following should should be sufficient: FROM rocker/rstudio:4
RUN echo "server-user=$USER" >> /etc/rstudio/rserver.conf |
Thanks for the quick reply! We are currently testing the set up on our Cluster and I'll report back if we run into issues because of the non-root-start up. |
I'm glad to hear that. |
Hi, I got the same problem when running RStudio from the rocker container on a server using apptainer. I translated your short dockerfile into apptainer definition (though had to hard code my user name since somehow |
As I wrote above, these images are intended to run RStudio Server by root. |
We ran into a problem trying to start the rocker/rstudio image with enroot on our slurm-cluster. Since our users are unprivileged, we get the following error:
2023-01-11T19:23:56.907205Z [rserver] ERROR Attempt to run server as user 'rstudio-server' (uid 999) from account '<userAccount>' (uid 11293) without privilege, which is required to run as a different uid; LOGGED FROM: virtual rstudio::core::ProgramStatus rstudio::server::Options::read(int, char* const*, std::ostream&) src/cpp/server/ServerOptions.cpp:318 /usr/lib/rstudio-server/bin/rstudio-server: line 7: systemctl: command not found
We have fixed this by copying your Dockerfile, inserting
RUN echo "server-user=$USER" >> /etc/rstudio/rserver.conf
beforeCMD ["/init"]
and building our own image.We were wondering, if this is something you might want to/ can to add to your Dockerfiles.
If there's something that speaks against doing that I would be very interested in learning about it since I am fairly new to this field.
The text was updated successfully, but these errors were encountered: