The certificate file or PEM may contain one or more certificates (e.g., server, intermediate, and root).įor additional information about using SSL, see the following: In either case, Jupyter Notebook expects the key and certificate to be a base64 encoded text file. You may mount an SSL key and certificate file into a container and configure the Jupyter Server to use them to accept HTTPS connections.įor example, to mount a host folder containing a notebook.key and notebook.crt and use them, you might run the following:ĭocker run -it -rm -p 8888:8888 \ -v /some/host/folder/notebook.pem:/etc/ssl/notebook.pem \ jupyter/base-notebook \ start-notebook.sh \ -NotebookApp.certfile =/etc/ssl/notebook.pem See the run-hooks function in the jupyter/base-notebook start.sh usr/local/bin/before-notebook.d/ - handled after all the standard options noted above are appliedĪnd ran right before the notebook server launches usr/local/bin/start-notebook.d/ - handled before any of the standard options noted above are applied Or executables ( chmod x) to be run to the paths below: ![]() ![]() You can further customize the container environment by adding shell scripts ( *.sh) to be sourced ![]() This may be useful if you run multiple instances of Jupyter in swarm mode and want to use a different port for each instance. Docker run -it -rm \ -p 8888:8888 \ -user root \ -e NB_USER = "my-username" \ -e CHOWN_HOME =yes \ -w "/home/ $ environment variable.
0 Comments
Leave a Reply. |