我无法让 Docker 容器访问互联网? [英] I can't get Docker containers to access the internet?
问题描述
我的智慧就此结束,我已经梳理了每一个谷歌结果,但没有任何帮助.
I'm my wits end with this, I've combed every single google result and nothing helps.
我完全无法让 docker 容器访问互联网.IP 转发已启用 (net.ipv4.ip_forward = 1
),ufw 已关闭,我尝试添加 -dns 8.8.8.8 -dns 8.8.4.4
标志.我在谷歌上找到的所有可能的解决方案都失败了.
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?
尝试重置所有内容,如推荐此处导致整个事情告诉我 docker -d
没有运行,即使它在运行.
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.
推荐答案
已解决.我按照 这些说明:注释掉了 dns=dnsmasq
行在 NetworkManager.conf
Resolved. I followed these instructions: commented out dns=dnsmasq
line in NetworkManager.conf
这篇关于我无法让 Docker 容器访问互联网?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!