【Docker】jupyter notebook

sudo docker pull hub-mirror.c.163.com/continuumio/anaconda3

sudo docker run -i -t -p 8888:8888 --name anaconda -v /home/dp/CODE/analysis/realWorldML/notebooks:/opt/notebooks hub-mirror.c.163.com/continuumio/anaconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook
--notebook-dir=/opt/notebooks --ip='*' --port=8888
--no-browser"


sudo docker run -i -t -p 8888:8888 --name anaconda -v /home/dp/CODE/analysis/realWorldML/notebooks:/opt/notebooks pee6w651.mirror.aliyuncs.com/continuumio/anaconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='localhost' --port=8888 --no-browser --allow-root"

sudo docker run -i -t -p 8888:8888 --name anaconda -v /home/dp/CODE/analysis/realWorldML/notebooks:/opt/notebooks hub-mirror.c.163.com/continuumio/anaconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root"

原文地址:https://www.cnblogs.com/colipso/p/12309538.html