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.

  • Logging from one docker container to another
  • Docker + Nginx deleted folder issue
  • Docker engine api ContainerTop ps_args not having any effect
  • Why can't you start postgres in docker using “service postgres start”?
  • Docker still can see open ports with and without --link flag set
  • Does Docker purge old/unused images?
  • 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

  • docker connecting to host tunnel from container
  • Delete images from v2 private registry (leaves behined empty repository with tags of the images it contained)
  • Docker --link not adding two entries to hosts file
  • Http2 protocol in an nginx reverse proxy and docker container
  • Cannot link to a running container started by docker-compose
  • ps --filter does not work with -H
  • 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.