Container is not available on localhost in Windows Docker Toolbox Container is not available on localhost in Windows Docker Toolbox docker docker

Container is not available on localhost in Windows Docker Toolbox


When you are using Docker Toolbox, running docker run -p 80:80 can be misleading. It means it will forward the port 80 of your container to the port 80 of your Docker machine, not the Windows host!

If you want to access the container through your Windows host, you also need to forward port 80 of your Docker machine to that host.

I see you are using VirtualBox, which allows you to do that by adding an entry in Settings > Network > Advanced > Port Forwarding.

Example tutorial with images: https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/