Docker Community Forums

Share and learn in the Docker community.

Unable to access the site exposed in container


(bk) #1

Hello ,

i am exposing my site hosted in a container .I am able to access the site inside the host machine. I gave a curl command where I am able to get a response . but when I try to access outside the host machine using the hostip:port I am not able ot access the site. is there any step I need to do . Aprreciate your help.

(Junius) #2

Could you please share how you created the container? A few possible reasons: 1) check if port is published to node. 2) if host firewall blocks the access. 3) if running on AWS EC2, check if security group is configured to allow access to the port.