https://hub.docker.com/r/continuumio/miniconda3
❯ docker run --name notebook_study -it -p 8888:8888 -v ~/Development/study/notebook-study:/notebooks continuumio/miniconda3
(base) root@f31dcb0416d5:/# /opt/conda/bin/conda install -c conda-forge matplotlib -y --quiet
(base) root@f31dcb0416d5:/# /opt/conda/bin/conda install jupyter -y --quiet
(base) root@f31dcb0416d5:/# apt install curl wget vim
(base) root@f31dcb0416d5:/# /opt/conda/bin/jupyter notebook --notebook-dir=/notebooks --ip='*' --port=8888 --no-browser --allow-root
-
http://localhost:8888/ 접속 후 jupyter notebook 사용
-
control + z
입력으로 서버 종료 -
(base) root@f31dcb0416d5:/# exit
❯ docker start notebook_study
❯ docker attach notebook_study
/opt/conda/bin/jupyter notebook --notebook-dir=/notebooks --ip='*' --port=8888 --no-browser --allow-root
(base) root@f31dcb0416d5:/# chmod 755 jpt.sh