Access Jupyter notebook running on Docker container

前端 未结 10 1396
南旧
南旧 2021-01-30 00:21

I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I l

10条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 00:31

    Host machine: docker run -it -p 8888:8888 image:version

    Inside the Container : jupyter notebook --ip 0.0.0.0 --no-browser --allow-root

    Host machine access this url : localhost:8888/tree‌​

    When you are logging in for the first time there will be a link displayed on the terminal to log on with a token.

提交回复
热议问题