[英]Docker container network failed Occasionally
我使用了使用logstash的docker容器。 但是,有时容器网络会失败。
=> ping google.co.kr
cannot resolve google.co.kr : Unknown host.
在运行时,此症状会每隔一周出现一次。
容器linux版本
Linux 81ed1c4b8bc9 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Docker I / O版本
Docker version 1.3.2, build 39fa2fa/1.3.2
编写了其他信息, iptables
提到了几篇文章。
[root@81ed1c4b8bc9 opt]# iptables -L
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
如果有人能给我有关如何解决此问题的有用建议,我将不胜感激。
您可以通过IP地址ping吗?
/etc/resolv.conf的内容是什么?
如果是这样,则将dns选项添加到docker服务(例如--dns 8.8.8.8 --dns 8.8.4.4)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.