# 03.Docker Juypter安装
Jupyter安装。细节可以参考Running a Container (opens new window)
Docker快速启动方法
- 创建一个DockerFile
FROM python:latest
LABEL maintainer="xueliang.wu@aispeech.com"
RUN apt-get update && apt-get install -y vim
RUN pip install jupyter -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install jupyter_contrib_nbextensions -i https://mirrors.aliyun.com/pypi/sim
1
2
3
4
5
6
7
2
3
4
5
6
7
- Docker 构建
docker build -t python/jupyter:latest -f Dockerfile_jupyter .
- 启动Jupyter
docker run -itd --rm --name jupyter_server -p 18888:8888 -v <数据目录>:/home -v /data/xueliang.wu/docker_data/jupyter/config:/root/.jupyter python/jupyter:latest su root -c 'jupyter notebook --allow-root'
配置文件内容:
c.ServerApp.ip = '0.0.0.0'
c.ServerApp.password = ''
c.ServerApp.open_browser = False
c.ServerApp.port = 8888
c.ServerApp.allow_remote_access = True
1
2
3
4
5
2
3
4
5
通过浏览器访问地址:
← 02.Redis学习资料 04.JQ手册 →
Apache License 2.0 | Copyright © 2022 by xueliang.wu 苏ICP备15016087号