What authenticator to use when JupyterHub is running in Docker with SystemUserSpawner?
See original GitHub issueI am trying to setup JupyterHub in Docker with SystemUserSpawner
so it uses the authentication of the host linux.
Basically I have normal linux users define on the host and I would like to authenticate them into JupyterHub running in the Docker container (and then it would spawn in Docker).
I can’t figure out what authenticator to use.
I assume it would be jupyterhub.auth.LocalAuthenticator
, but how to use that with SystemUserSpawner
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
DockerSpawner API - Read the Docs
A Spawner for JupyterHub that runs each user's server in a separate docker container. allowed_images c. ... Deprecated, use DockerSpawner.image.
Read more >JupyterHub - Docker Hub
You can use the root shell to create system users in the container. These accounts will be used for authentication in JupyterHub's default...
Read more >jupyterhub/jupyterhub - Gitter
Ask quick dev questions about JupyterHub, the multi-user server for Jupyter notebooks. Use discourse.jupyter.org for user questions, support, and discussion.
Read more >Top 5 dockerspawner Code Examples - Snyk
How to use dockerspawner - 10 common examples ... from tornado import gen from dockerspawner import DockerSpawner, SystemUserSpawner # urllib3 complains ...
Read more >JupyterHub/SystemUserSpawner/jupyterhub_config.py [最新 ...
Use base_url to run # JupyterHub within an existing website. ... from dockerspawner import SystemUserSpawner from traitlets import Unicode ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have managed to solve this.
LocalAuthenticator
does not work, but thePAMAuthenticator
does (see https://stackoverflow.com/questions/48071985/jupyterhub-localauthenticator-does-not-work/etc/passwd
/etc/shadow
and/etc/group
from the host to the JupyterHub container (see https://github.com/jupyterhub/jupyterhub/issues/535)After this JupyterHub in a Docker container can use the system users of the linux host.
I don’t quite see why would that see the directory permissions of the user’s home, but I am sure you have tested it. I don’t have my users added to the docker group and I don’t have this problem.