0

I'm currently using docker toolbox for windows and am having trouble accessing the container instances from localhost.

Picture of the Port details

All the ports are up and running, but I can't seem to access them from localhost through my browser. How can I do so?

hyz
  • 1

1 Answers1

0

Have you tried to run the container on the host network --net=host.

Right now your container should be available from 0.0.0.0.

By default, Docker exposes container ports to the IP address 0.0.0.0 (this matches any IP on the system). If you prefer, you can tell Docker which IP to bind on.

docker run -p 127.0.0.1:80:8080 <image>
aiqency
  • 1,015
  • 1
  • 8
  • 22