-
Notifications
You must be signed in to change notification settings - Fork 153
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
docker rootless support ? #525
Comments
sounds like it works fine ! the volume is not anymore an issue, and it's much more secure to run docker in rootless. |
Hi, as you noticed ShinyProxy works fine with rootless docker, although it's important that ShinyProxy is using the same user, such that it's able to access the docker socket (the use of a TCP port is insecure and would remove the benefit of rootless docker). When running ShinyProxy in Docker, you can use (almost) the same commands as here: https://github.com/openanalytics/shinyproxy-config-examples/tree/master/02-containerized-docker-engine#how-to-run . Apparently when mounting the Docker socket, docker changes the ownership to EDIT: we will add this information to the documentation and examples. |
@parisni just adding my experience since I happened to work on exactly the same problem the last weeks (getting containerized shinyproxy running in Rootless mode). It took us some time to get mounted volumes working, but we managed to get the setup working without setting a user to root in any of the containers (including the ShinyProxy container). Following this advice, we used
I tested since last week, and so far it works quite well with ShinyProxy, regardless of the number of containers in use. |
as for rootless to me it's OK to either set
interresting. works fine so far, however, not sure why apps started by shiny proxy are run with the root user by default (it's mapped to the host rootless user BTW). For eg, execing rstudio will result as:
and the logs are:
now if I set
The container fails to start correctly and I get the following logs:
So this is apparently how rootless mode works. But it also means I can break the container with (which is not really a big deal):
|
Wondering if sp would work w/ docker in rootless mode.
Apart from security perspective one interesting effect would be docker volume access.
Right now when SP mounts a dynamic volume let's say containing the username, the very first time docker creates the folder both on the host and within the container with root access. As a result if the docker image is no root, that folder is read-only.
With docker rootless the volume would be created by the user , say 1000:1000, which is used by most containers (Jupyter, rstudio at least)
The text was updated successfully, but these errors were encountered: