Access jupyter notebook using docker
I searched for dev container, not runtime, but couldn't find it.
This method uses some tricks - not using the notebook's default port, etc.
1. Run docker container
docker run -it -p 8880:8880 --name jpt -v /home/hayoung/Desktop/:/data jupyter/datascience-notebook:latest
2. Check your container's id
(Use another terminal, or stop the current container and check)
docker ps -a
3. Get inside of the container
docker exec -it {your container's id} /bin/bash
4. Run a new notebook
jupyter notebook --no-browser --allow-root --port 8880 --ip=0.0.0.0 --NotebookApp.password={your notebook's password hash} --notebook-dir='/'
(You can get your hash by running python and executing "from notebook.auth import passwd; passwd()" in the host machine)
ref:
https://bio-info.tistory.com/12
https://manvscloud.com/?p=385
댓글
댓글 쓰기