我的码头容器没有互联网

编程入门 行业动态 更新时间:2024-10-27 08:39:43
本文介绍了我的码头容器没有互联网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我已经完成了工作,但现在停止了。我尝试以下命令无效:

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.

更多推荐

我的码头容器没有互联网

本文发布于:2023-11-27 17:00:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638845.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:互联网   容器   码头

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!