docker 1.12.1 使用bridge网络模式启动的container无法访问外网


docker version:1.12.1
iptables 已启动

docker run -it -v /etc/resolv.conf:/etc/resolv.conf -v /etc/localtime:/etc/localtime -v /etc/profile:/etc/profile centos:6.8

docker启动后,执行如下命令:
yum install lrzsz
Loaded plugins: fastestmirror, ovl
Setting up Install Process
Could not retrieve mirrorlist http://mirrorlist.centos.org/% ... stock error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

大家有遇到过么?
已邀请:

要回复问题请先登录注册