Docker container with a PyData stack and JupyterHub server
PyData multi-user IPython/Jupyter notebook server docker container using JupyterHub and conda.
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
FROM twiecki/pydata-docker-jupyterhub MAINTAINER Thomas Wiecki <email@example.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
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?
@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.
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?