How to call a container, running on a virtual machine, from a Windows browser?

I have Windows 7 operating system and have set up Docker. Docker starts on the virtual machine. I create some containers on Docker and test them on the command line, for example:

curl localhost:9200

Now I want to test this container from a Windows browser

  • How to exclude some paths when mounting the volume?
  • Elasticsearch 2.4 nodes does not form cluster with ConnectTransportException
  • Nginx reverse proxy on docker and unloaded assets
  • IBM Bluemix impossible to delete a container
  • RabbitMQ Cluster does not elect new master
  • Xdebug breaks on access to class static property
  • http://localhost:9200

    How do I call the container, which is running on a virtual machine, from a Windows browser?

  • “Unable to locate package build-essential” while Docker build on Debian Jessie
  • Execute mysql command from the host to container running mysql server
  • Not able to access Flask Web application running inside a Docker container
  • Number of nodes appears 0 in a swarm cluster
  • Docker: Refer to registry by ip address
  • Rancher getting 404 responses form private registry URL's
  • 2 Solutions collect form web for “How to call a container, running on a virtual machine, from a Windows browser?”

    Assuming you have ‘published’ the service to port 9200, just use the IP address of the VM instead of localhost. To get that address, you can inspect your VM setup, or use the boot2docker command:

    boot2docker ip

    Then, insert that address where I have the ‘x’s here in your browser:


    Or map published IP address from docker container running inside boot2docker like this:

    boot2docker ssh -L

    That way, you (and others that can access your computer) can acccess it on both of the following links:

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