【发布时间】:2013-12-10 10:32:15
【问题描述】:
这是我尝试过的所有事情:
使用 -dns 运行 docker 守护进程:
sudo docker -d -dns 8.8.8.8
确保启用了 IP 转发:
$ sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
域名服务器已到位:
$ docker -dns '8.8.8.8' run centos:6.4 ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 12000ms
感谢任何建议。
【问题讨论】: