部署jupyter
Docker 部署Jupyter book
Jupyter Docker Stacks are a set of ready-to-run Docker images containing Jupyter applications and interactive computing tools. You can use a stack image to do any of the following (and more):
Start a personal Jupyter Server with JupyterLab frontend (default)
Run JupyterLab for a team using JupyterHub
Start a personal Jupyter Notebook server in a local Docker container
Write your own project Dockerfile
从零开始学习线性代数:使用Jupyter Notebook
镜像说明
镜像关系:
(图片)
大数据分析:
mkdir /home/jupyter
chmod 777 /home/jupyter
docker run --name first_jupyter -it -p 40000:8888 -v /home/jupyter:/home/jovyan/work jupyter/datascience-notebook:latest
神经网络:
docker run --name second_jupyter -it --rm -p 40001:8888 -v "${PWD}":/home/jovyan/work jupyter/tensorflow-notebook:latest
提示:
To access the server, open this file in a browser:
file:///home/jovyan/.local/share/jupyter/runtime/jpserver-8-open.html
Or copy and paste one of these URLs:
[https://cloud.tencent.com/developer/ask/sof/1468015]
其他电脑可以过http://服务器ip:10000/lab?token=3d01d631dcb9b*****a018be1a38817de88a84cf31888d65
来访问jupyter,会让输入token
设置密码,以后不用输入token了
#查询token
docker exec -it first_jupyter jupyter notebook list
#设置密码
docker exec -it first_jupyter jupyter notebook password
#重启实例
docker restart first_jupyter
Due to the usage of the flag --rm Docker automatically cleans up the container and removes the file system when the container exits, but any changes made to the ~/work directory and its files in the container will remain intact on the host. The -it flag allocates pseudo-TTY.
小提示
欧拉记得允许防火墙
firewall-cmd --list-all
firewall-cmd --permanent --add-port=40000/tcp
firewall-cmd --reload
firewall-cmd --list-all