docker run -dns 8.8.8.8 base ping google / p>
docker run base ping google
sysctl -w net.ipv4.ip_forward = 1 - 在主机和容器上
我得到的是 unknown host google 。 Docker版本0.7.0
任何想法?
ufw 禁用
解决方案按照以下建议修正: github/dotcloud/docker/issues/866#issuecomment-19218300
似乎界面被挂了。
I had it working allright but now it stopped. I tried the following commands with no avail:
docker run -dns 8.8.8.8 base ping google
docker run base ping google
sysctl -w net.ipv4.ip_forward=1 - both on the host and on the container
All I get is unknown host google. Docker version 0.7.0
Any ideas?
P.S. ufw disabled as well
解决方案Fixed by following this advice: github/dotcloud/docker/issues/866#issuecomment-19218300
Seems the interface was 'hanged' somehow.
更多推荐
我的码头容器没有互联网
发布评论