Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What authenticator to use when JupyterHub is running in Docker with SystemUserSpawner?

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

zoltan-fedorcommented, Jun 30, 2018

I have managed to solve this.

  1. The LocalAuthenticator does not work, but the PAMAuthenticator does (see
  2. I need to mount (or copy) the /etc/passwd /etc/shadow and /etc/group from the host to the JupyterHub container (see

After this JupyterHub in a Docker container can use the system users of the linux host.

zoltan-fedorcommented, Oct 18, 2018

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.

Read more comments on GitHub >

github_iconTop 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 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/ [最新 ...
Use base_url to run # JupyterHub within an existing website. ... from dockerspawner import SystemUserSpawner from traitlets import Unicode ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found