docker-archive/toolbox

I cannot connect to a web application run as part of a Docker container via web browser

Closed this issue · 1 comments

I'm running a container created with a TensorFlow Docker image successfully. But I cannot connect to the Jupyter server which is run as part of the Docker container via a web browser. Have I missed something in the installation instructions?

When a Docker Container is run there is displayed the URL under which the Jupyter Notebook is accessible, something like

Florian@DESKTOP-UCBROHF MINGW64 /c/Program Files/Docker Toolbox
$ docker run -it --rm -p 8888:8888 tensorflow/tensorflow:latest-py3-jupyter
(...)
http://(8e47eac59b79 or 127.0.0.1):8888/?token=<SOME-TOKEN>
(...)

However as the runtime environment of Docker Toolbox involves a VirtualBox VM one has to use it's IP to connect. To get the IP of the (default) VM execute the following in the interactive Shell (opened via "Docker Quickstart Tutorial" desktop icon)

Florian@DESKTOP-UCBROHF MINGW64 /c/Program Files/Docker Toolbox
$ docker-machine ip default
<VM-IP-ADDRESS>

In Windows when entering the proper URL with the IP address of the VM into a web browser everything is fine: (8e47eac59b79 or 127.0.0.1) needs to replaced with <VM-IP-ADDRESS>.