Public | Automated Build

Last pushed: a year ago
Short Description
PyData multi-user IPython/Jupyter notebook server docker container using JupyterHub and conda.
Full Description

Docker container with a PyData stack and JupyterHub server

PyData multi-user IPython/Jupyter notebook server docker container using JupyterHub and conda.

DockerHub: https://registry.hub.docker.com/u/twiecki/pydata-docker-jupyterhub/

To set up your own JupyterHub IPython server on top of this using PAM authentication for the Notebook users (the default), use the add_user.sh script from the scripts directory. Create a file called users with a line for every user that looks like this <user>,<password>.

FROM twiecki/pydata-docker-jupyterhub

MAINTAINER Thomas Wiecki <thomas.wiecki@gmail.com>

# Set up shared folder
RUN mkdir /opt/shared_nbs
RUN chmod a+rwx /opt/shared_nbs

# If you have your own custom jupyterhub config, overwrite it.
ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py

ADD users /tmp/users
ADD add_user.sh /tmp/add_user.sh
RUN bash /tmp/add_user.sh /tmp/users
RUN rm /tmp/add_user.sh /tmp/users
Docker Pull Command
Owner
twiecki

Comments (3)
tikazyq
2 years ago

Hi I have run sudo docker run twiecki/pydata-docker-jupyterhub to start the container but cannot access JupyterHub via website. However, I can if I run jupyterhub manually. Is there anything I am missing?

twiecki
3 years ago

@graffitic The idea is to execute the add_user.sh script from within your docker file that inherits from this image as the example Dockerfile demonstrates. I'd rather not add a default user for security reasons.

graffitici
3 years ago

This looks very useful. But can you elaborate on how to create a user? I did a docker run, and can see the process when I do docker ps. How can I enter the container to run the add_user.sh script?

Maybe having a version of the Dockerfile with a default user would be helpful?