问题描述
亲爱的Azure团队,
Dear Azure team,
我的容器基于Nodejs。
My container was base on the Nodejs.
它使用axios库来调用API。它没有得到任何回应。
It was using axios library to call APIs. And it doesn't get any response.
我试图使用Container - >连接终端ping IP。它没有收到任何回复。
I tried to use Container -> Connect terminal to ping a IPs. It doesn't receive any response.
您是否建议发现我的容器有什么问题?
Would you suggest to found what is wrong with my container?
谢谢
推荐答案
我将节点容器映像从docker hub部署到ACI。
I deployed the node container image to ACI from docker hub.
我连接到该容器终端并发出以下命令以检查它是否能够到达bing.com。
I connected to that containers terminal and issued the below command to check if its able to reach bing.com.
wget www.bing.com
它能够下载index.html。这表明节点容器能够访问互联网。
It able to download the index.html. This shows that the node container is able to reach the internet.
我建议您使用上述命令测试互联网连接而不是ping。大多数网站会屏蔽ping请求。 试试这个。
I suggest you to use the above command to test the internet connectivity instead of ping. Most websites block ping requests. Try this out.
这篇关于Azure容器实例(ACI)存在网络问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!