I’m using container image https://hub.docker.com/r/alexcoppe/pyspark/ which, when I
docker run on linux starts and I can successfully browse to the UI that the container presents at http://127.0.0.1:8889. The linux host is running in virtualbox upon a Windows host.
I would also like to run that same docker image on the Windows host, just so that I don’t have to use the linux VM intermediary. I am using Docker Toolbox to do this. The container starts successfully:
$ docker run --rm -it -p 127.0.0.1:8889:8889 -v $(pwd):/notebook alexcoppe/pyspark [TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions. [TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future [I 08:33:57.229 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret [I 08:33:57.248 NotebookApp] Serving notebooks from local directory: /notebook [I 08:33:57.248 NotebookApp] 0 active kernels [I 08:33:57.248 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8889/ [I 08:33:57.248 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
however when I browse to the same endpoint all I see is:
This site can’t be reached
127.0.0.1 refused to connect.
Checking the connection
Checking the proxy and the firewall
I’m not very knowledgeable on the inner workings here other than knowing that that container image is running on a virtualbox linux VM that Docker Toolbox creates for me behind the scenes. How can I browse to the endpoint from my Windows host?