-
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting docker running in spawned user container #3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
There is just jupyterlab-r-docker-stack/common/subtags/docker/Dockerfile Lines 28 to 31 in 663f021
One option is to run the container in rootless mode and use the hosts Docker engine. docker run -it --rm \
-p 8888:8888 \
-u root \
-v "${PWD}/jupyterlab-root":/home/root \
-v /var/run/docker.sock:/var/run/docker.sock \
-e NB_USER=root \
-e NB_UID=0 \
-e NB_GID=0 \
glcr.b-data.ch/jupyterlab/r/verse:4.3.2-devtools-docker start-notebook.sh --allow-root There are also other options. |
@benz0li . Thanks for the info. So I'm using your deployment set-up per https://gitlab.com/b-data/docker/deployments/jupyter ... is there a setting for A quick search on github ... https://github.com/UCSC-Treehouse/hub/blob/master/jupyterhub_config.py#L18 ... would suggest that maybe its possible to use the gitlab spawner to attach volumes, akin to what you are doing on the command-line above. Does the user have to run as root, or could the default |
Just as an update, I modified the
Then I performed these steps manually, so I could get docker working with
This allowed me to piggy-back off the docker installation on the host machine. |
(Don't touch
In this case you should use the docker run -it --rm \
-p 8888:8888 \
-v /var/run/docker.sock:/var/run/docker.sock \
-e GRANT_SUDO=yes \
glcr.b-data.ch/jupyterlab/r/verse:4.3.2-devtools-docker-root jupyterhub_config.py: c.Spawner.environment = {
'GRANT_SUDO': 'yes'
} If you do not want to type
to file |
I strongly advise against using this method on a multi-user JupyterHub server because it enables |
@benz0li .. thanks for follow-up. I'll keep that in mind. |
Originally posted by @benz0li in jupyter/docker-stacks#2137 (comment) Footnotes |
@benz0li .. thanks for your efforts with these resources.
I am running up a user container using your
glcr.b-data.ch/jupyterlab/r/verse:4.3.2-devtools-docker-root-linux-amd64
image. This looked like it was going to give me access to a running docker capability for userjovyan
. While the docker executable is installed, I am gettingCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
. I tried some of the obvious fixes like:However, this doesn't appear to fix. Any suggestions, if indeed this is possible. Thanks.
The text was updated successfully, but these errors were encountered: