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.

  • Docker Garbage collector not finding anything to delete
  • Docker-client: How to attach user input to attachStdin at runtime
  • Bridge docker container port to host port
  • Angular2 deploy in docker container disturbs routing
  • What is a good style to deploy with docker when docker hub is not available?
  • Why does “docker push” push several images and where?
  • This works on OSX.

    Why is this not working on Windows?

  • Multiple library version management with Docker
  • Scripts in shell script not being executed in docker
  • Dockered Play app gives IllegalAccessError: tried to access method
  • How to run livereload with gulp within a docker container?
  • How to scale application with multiple exposed ports and multiple volume mounted by using docker swarm?
  • Using host filesystem as a read-only base in docker
  • 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.