Docker / 开发 · 9月 1, 2021

docker-stacks 一键启动jupyter开发环境

内容纲要

2021-07-05 记事

https://github.com/jupyter/docker-stacks


docker run --rm -p 10000:8888 -e JUPYTER_ENABLE_LAB=yes -v ${PWD}:/home/jovyan/work jupyter/scipy-notebo:33add21fab64

创建密码


import IPython IPython.lib.passwd()

启动预设密码的jupyter 密码


docker run --restart unless-stopped -d -p 10001:8888 -e JUPYTER_ENABLE_LAB=yes -v ${PWD}:/home/jovyan/work jupyter/scipy-notebook:33add21fab64 start-notebook.sh --NotebookApp.password=\'sha1:4f88c5b4e717:738d86f19cbdc3e685b047bbd37a87172ffa620e\'

docker run -it --rm -p 8888:8888 jupyter/base-notebook start.sh jupyter lab

``` 更多设置 https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#notebook-options

如果想要获取root权限,可以参考这里

https://terrychan.org/2021/09/docker%e5%90%af%e5%8a%a8%e5%b8%a6%e6%9c%89sudo%e6%9d%83%e9%99%90%e7%9a%84jupyter%e6%9c%8d%e5%8a%a1/
%d 博主赞过: