我的码头容器没有互联网 [英] My docker container has no internet

查看:100
本文介绍了我的码头容器没有互联网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了工作,但现在停止了。我尝试以下命令无效:



docker run -dns 8.8.8.8 base ping google.com / p>

docker run base ping google.com



sysctl -w net.ipv4.ip_forward = 1 - 在主机和容器上



我得到的是 unknown host google.com 。 Docker版本0.7.0



任何想法?



ufw 禁用

解决方案

按照以下建议修正: https://github.com/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.com

docker run base ping google.com

sysctl -w net.ipv4.ip_forward=1 - both on the host and on the container

All I get is unknown host google.com. Docker version 0.7.0

Any ideas?

P.S. ufw disabled as well

解决方案

Fixed by following this advice: https://github.com/dotcloud/docker/issues/866#issuecomment-19218300

Seems the interface was 'hanged' somehow.

这篇关于我的码头容器没有互联网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆