Windows Docker2boot example cannot open page from localhost

I installed Docker2boot on my windows computer and I am following this tutorial , trying to set up a containing running as a flask server so I can access the page outside the container/locally.

I kickstarted the flask server and I am assuming it is running by calling docker top command.

  • How to access JIRA Software files in a docker image?
  • Multithreading during image build
  • Run docker in shell using PHP
  • can't execute conky on docker
  • Testing a Docker Image
  • docker commit data container to private registry
  • enter image description here

    However, I tried to open it in my chrome browser and cannot open it. It doesn’t tell me the page doesn’t exist but instead, just hangs there forever.

    enter image description here

    Can anyone help me?

    UPDATE, it works on the Ubuntu Virutal Box on my windows machine in the end.
    enter image description here

  • Why >>> eval “$(docker-machine env default)” in a ansible playbook script return “No such file or directory”
  • Gulp not detecting file changes in subfolder
  • Swarm container not getting started with created overlay network
  • PyCharm add remote Python interpreter inside the Docker
  • Docker cache confusion
  • Dockerfile unable to resolve host github with “go get”
  • One Solution collect form web for “Windows Docker2boot example cannot open page from localhost”

    This is because the docker is running within a VM. You need to find out the IP address of the VM & use that IP address + port to access.

    To get the IP address, run…

    boot2docker ssh ip addr show dev eth1

    … which will give you something like this…

    4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:0e:46:b7 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe0e:46b7/64 scope link 
       valid_lft forever preferred_lft forever

    (It would not let me post with the actual IP address included)

    Then use this IP address to connect (in this example…

    Don’t forget to use the correct post from the docker ps output.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.