Closed1
Python with Jupyter Notebook on Docker
Python with Jupyter Notebook on Docker
1. 起動
$ docker run -v $PWD/opt:/root/opt -w /root/opt -it --rm -p 7777:8888 docker-python_python3 jupyter-lab --ip 0.0.0.0 --allow-root -b localhost
成功例
To access the server, open this file in a browser:
file:///root/.local/share/jupyter/runtime/jpserver-1-open.html
Or copy and paste one of these URLs:
http://46102976db71:8888/lab?token=xxxxxxxxxx
http://127.0.0.1:8888/lab?token=xxxxxxxxxx
ブラウザを開き、http://127.0.0.1:7777
にアクセス
token=xxxxxxxxxx
の xxxxxxxxxx
を Password or token の入力欄に入力し Login
2. 終了
$ docker exec -it *docker-container-id* bash
Shutdown this Jupyter server (y/[n])?
y
と入力
このスクラップは2023/04/09にクローズされました