Access Jupyter notebook running on Docker container

前端 未结 10 1416
南旧
南旧 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:41

    The below is how I get it running on Windows 7 with docker toolbox.

    If you are using docker toolbox, open up the Docker quickstart terminal, and note the IP here:

    docker is configured to use the default machine with IP 192.168.99.100
    For help getting started, check out the docs at https://docs.docker.com
    

    Once you run the docker commands from the tensorflow installation website:

    docker pull tensorflow/tensorflow                  # Download latest image
    docker run -it -p 8888:8888 tensorflow/tensorflow  # Start a Jupyter notebook server
    

    You will receive a message like this:

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://127.0.0.1:8888/?token=d6e80acaf08e09853dc72f6b0f022b8225f94f
    

    In the host, replace 127.0.0.1 with 192.168.99.100 and use the rest of that URL

提交回复
热议问题