-1

I am new to Docker and I am trying to test my application on local host(windows machine). In CLI, after running docker run command, it shows that it is up and running on local host. However, when I try to open the URL in browser, page shows message that "This site can’t be reached". I am using docker desktop and base image of alpine. I may be missing something on this issue. Is it something related to issue on windows ? (One more thing, When I use docker ps --a command, I can see container's name but port numbers are missing. Port numbers are visible on docker desktop).

Stuck with this since many days. Please help !!

  • Welcome to stack overflow. Please take some time to review the guidelines for asking a question here. Your question is not related to programming and probably belongs on a different stack. – possum May 28 '22 at 20:29

1 Answers1

-1

You need to bind your program to host 0.0.0.0 instead of 127.0.0.1 or localhost. Unfortunately no further help can be provided unless you specify what docker container/application you're trying to use.

Localhost vs 0.0.0.0 with Docker on Mac OS

robere2
  • 1,689
  • 2
  • 16
  • 26