Docker localhost process not working on Windows

I am using Docker Quickstart Terminal to run a docker container. The container should work on port 8088 of localhost:

 docker run -it --name myContainer -p 8088:8088

However, when I go to localhost:8088 or I can’t find any process running.

  • Error on Docker Pull - “Layer already being pulled by another client”
  • Wrong type error on an interface intended to test a method using Docker's client API
  • NuoDB setup on Docker for MacOS. Connection to NuoDB failed. [08S01] Could not connect to any host
  • Can't run sonar-scanner inside docker container: Permission denied
  • How to change the access url of official phpmyadmin docker image to http://localhost/phpmyadmin?
  • Docker out of space with vfs driver
  • This works on OSX.

    Why is this not working on Windows?

  • How to restart multiple containers in a docker swarm
  • Using docker-compose, how do I share my image to docker-hub?
  • How to designate specific versions of e.g. Ubuntu containers?
  • docker unable to compile program (possibly undefied macro AC_MSG_ERROR)
  • Docker: mounting volumes from other docker service (not container)
  • Deploying with docker push is slow because there are many images
  • 2 Solutions collect form web for “Docker localhost process not working on Windows”

    I’m assuming you’re using VirtualBox, since that’s what is integrated with the Quickstart terminal.

    The reason it doesn’t work is that Windows isn’t running your (Linux) containers natively, it’s running them in a separate Linux-based VM. This VM is available under a different ip address than your “physical” machine, usually printed when you start the quickstart terminal:

    enter image description here

    This is the ip address you need to use in order to connect to published container ports.

    One possibility is the kind of VM you are using : HyperV (Docker For Windows) or VirtualBox (Docker Toolbox).

    If it is the later (which seems probable since you are using the Docker Quickstart Terminal), you need to port forward 8088 in order for your PC (localhost) to see it.
    See “How do I configure docker compose to expose ports correctly?” as an example when using VirtualBox.

    If localhost does not work, a docker-machine ip will show you the ip of the VM being executed.

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