我不能让Docker容器访问互联网? [英] I can't get Docker containers to access the internet?

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

问题描述



我完全不能让Docker容器访问互联网。启用IP转发( net.ipv4.ip_forward = 1 ),ufw已关闭,我尝试添加 -dns 8.8.8.8 - dns 8.8.4.4 标志。任何人都有任何想法如何帮助?



尝试重置所有内容,因为推荐 here 会导致整个事件中断告诉我,即使是这样, docker -d 也不会运行。

解决方案>

解决。我遵循 https://github.com/dotcloud/docker/issues/1809:在中注释掉 dns = dnsmasq lineManagerManager.conf


I'm my wits end with this, I've combed every single google result and nothing helps.

I'm completely unable to get docker containers to access the internet. IP forwarding is enabled (net.ipv4.ip_forward = 1), ufw is turned off, I've tried adding the -dns 8.8.8.8 -dns 8.8.4.4 flags. Every possible solution I've ever found on google fails.

Anyone have any idea how to help?

Attempting to reset everything, as recommend here causes the entire thing to break by telling me that docker -d isn't running even though it is.

解决方案

Resolved. I followed the instructions in https://github.com/dotcloud/docker/issues/1809: commented out dns=dnsmasq line in NetworkManager.conf

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

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