先运行一个容器,并且把宿主机端口映射到jupyter的8888
docker run -it --gpus all -p 9099:8888 --network=my_network - ubuntu_zzc_0510
1.生成配置文件
jupyter notebook --generate-config
2.修改配置文件
vim ~/.jupyter/jupyter_notebook_config.py
c.ServerApp.allow_root = True
3.运行
jupyter notebook --ip=0.0.0.0 --allow-root
4.宿主机访问
http://localhost:9099/?token=d429ae9871590bc5bdb9859db53a30c0fcf270f0e33c450b