I used this official guide to set up Docker on a Windows 7 machine:
https://docs.docker.com/windows/started/
I successfully pulled an image from the docker hub and I can run my own docker image.
No I am stuck trying to run and access a webserver with docker on Windows. Apparently, behind boot2docker
I can't reach my docker container the way I was used to.
Once I added -p 3007:80
to the docker run
command, the port forwarding showed up in the container list (docker ps
) as 0.0.0.0:3007 -> 80
. And with -p 127.0.0.1:3007:80
I get a more meaningful ip address. I cannot, however, reach the container with a browser on the Windows host.
Moreover, docker inspect
does not reveal an ip address for the running container (which also seems wrong).
I also tried --net=host
to no avail.