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

  • CoreOS member node will not start when using “etcdctl member add”
  • Postgres pg_hba.conf: ip range not working
  • How can I expose kubernetes services running within docker?
  • Checking container connectivity with ping in a Calico network of Docker containers
  • docker-compose - No such service via Vagrant-Windows shells only
  • How can you make the docker container use the host machine's /etc/hosts file?
  • http://localhost:9200

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

  • Gitlab always shows “No container image repositories in Container Registry for this project.”
  • docker-compose file removes the files extracted by dockerfile in container directory
  • Running multiple services in a Docker container
  • How to observe scheduled tasks output with Django celery and Docker
  • use docker-client api to start container in Java project
  • kpm restore unable to find System.Net.Http
  • 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.