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.

  • Running Cloudant as docker container with docker compose
  • WordPress on Docker: mysqld entered FATAL state, too many start retries too quickly
  • hotdeploy / hotswap classes using wildfly maven docker intellij
  • jps command not found. Put the JDK's jps binary on the command path
  • add ssh keys in Docker
  • What starts this docker process on my laptop?
  • 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

  • Run multiple Python scripts in Azure (using Docker?)
  • Docker : How To Dockerize And Deploy multiple instances of a LAMP Application
  • Can a single docker host be managed by multiple docker-machine instances?
  • asp.net mvc in container in an azure windows app service
  • How to use docker-py (official docker client) to start a bash shell?
  • Installing Docker with sudo
  • 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 192.168.59.103 brd 192.168.59.255 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… http://192.168.59.103:49153)

    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.