curl from docker ubuntu image
FROM dockerfile/ubuntu #java, tomcat EXPOSE 80
docker run -i -t -d -p 80:80 <image>
Without running tomcat, just running image and attaching to it – I try to make request to any site. For example:
Results connection refused:
curl: (7) Failed to connect to google.com port 80: Connection refused
What could cause this problem?
Image is running on Amazon Linux, if it matters.
One Solution collect form web for “curl from docker ubuntu image”
Deployed the same image on aws ubuntu 14.04 and everything works.