

I needed this because I am teaching courses where the participants must get temporary accounts which are deleted after the course, and I was not allowed to pollute the Docker host with these accounts. If you don't have root privileges on the Docker host, then it'll be rather complicated to add temporary users to the Hub container.The reason I am adding this as a separate answer is the CAVEAT: while useful links are available on the Internet, they are often outdated and there are inconsistencies between the documentation and reality that make the "productive Dockerisation of Jupyter" rather painful. The Hub can "spawn" a separate container for each user running a given JupyterLab (search for the DockerSpawner class that's responsible for the magic). The Jupyter Docker Stack provides ready-made JupyterLab images that work together with a JupyterHub docker image. Sockets = bind_sockets(port, address=address)įile "/usr/local/lib/python3.6/site-packages/tornado/netutil.py", line 197, in bind_sockets Return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)įile "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instanceįile "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_errorįile "/usr/local/lib/python3.6/site-packages/notebook/notebookapp.py", line 1507, in initializeįile "/usr/local/lib/python3.6/site-packages/notebook/notebookapp.py", line 1297, in init_webappįile "/usr/local/lib/python3.6/site-packages/tornado/tcpserver.py", line 142, in listen Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secretįile "/usr/local/bin/jupyter-lab", line 11, in įile "/usr/local/lib/python3.6/site-packages/jupyter_core/application.py", line 266, in launch_instance But unfortunately I got some error as below RUN pip install jupyter -U & pip install jupyterlabĪnd run the commands, docker build. I'm trying to dockerize the Jupyter Lab and so I tried to create a Dockerfile as below,
