Docker Community Forums

Share and learn in the Docker community.

Web Server refusing to connect


(Lavanyadeepak) #1

I have built a small asp.net application and built using docker. Now when I try running it it says the following output

Now listening on http://[::]:80

but firefox saying connection refused for http://localhost

Please help…


(Sam) #2

you must connect the container port to the host port

add -p 80:80 to the docker run command

note the parms are -p host_port:container_port