[英]curl from docker ubuntu image
I have created docker image which is based on the ubuntu image, and contains java and tomcat. 我创建了基于ubuntu映像的docker映像,其中包含java和tomcat。
FROM dockerfile/ubuntu
#java, tomcat
EXPOSE 80
Then: 然后:
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. 在不运行tomcat的情况下,仅运行图像并将其附加到它-我尝试向任何站点发出请求。 For example:
例如:
curl google.com
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. 如果重要,映像正在Amazon Linux上运行。
在aws ubuntu 14.04上部署了相同的映像,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.