docker-compose.yml
version: '3.8'
services:
base-notebook:
image: jupyter/base-notebook
restart: unless-stopped
ports:
- 8888:8888
volumes:
- ./book:/home/jovyan
设置密码: docker exec -it jupyter-base-notebook-1 jupyter notebook password
重启容器后就可以使用密码登录了
其他类型的Notebook也是同样的安装方法