Opening Ipython notebook from boot2docker in windows
I am using Surface Pro 3 with Windows Pro 8.1. I am trying to access IPython notebook from docker. The command I am using is
ipython notebook --no-browser --port 8888 "--ip=*"
The laptop works but it doesn't open in my browser, this is what I get when I run it
[I 23:16:44.921 NotebookApp]B Using existing profile dir: u'/home/itam/.ipython/profile_default'
[I 23:16:44.990 NotebookApp]B Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
[C 23:16:45.012 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[C 23:16:45.012 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
[I 23:16:45.018 NotebookApp]B Serving notebooks from local directory: /home/itam/mate-computacional/itam-mate-computacional
[I 23:16:45.018 NotebookApp]B 0 active kernels
[I 23:16:45.018 NotebookApp]B The IPython Notebook is running at: http://[all ip addresses on your system]:8888/
[I 23:16:45.019 NotebookApp]B Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
My virtual machine IP is 192.168.59.103 but https://192.168.59.103:8888/
does not open laptop.
+3
source to share
1 answer
Run boot2docker and create a new docker container ipython1 :
docker run -it -ip 8888:8888 -v //c/Users/USERNAME://usr/data --name ipython1 <image_name>
image_name is the name of your docker image
-v folder_in_your_win_machine: folder_in_docker_container
-ip port_in_win: port_in_docker_container
Start ipython1 docker container and start ipython notebook in docker container:
docker start ipython1
docker exec -it ipython1 ipython notebook --ip=0.0.0.0 --no-browser
Next, go to your Windows browser and enter url: docker_ip: 8888. To see how the docker IP is executed:
boot2docker ip
+1
source to share