且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法连接到Docker容器内的网络

更新时间:2022-11-30 08:06:24

我发现了问题所在.这不是DNS的问题,而是Docker容器内部的网络连接本身的问题.深入研究该问题是分配给docker0接口的默认IP,它与我的网络地址冲突.强制docker守护程序分配IP,这样它就不会发生冲突,并且我的问题得以解决.

I figured out the issue. It is not an issue with the DNS but an issue with the network connection itself inside Docker containers. Drilled down the issue is the default IP assigned to docker0 interface, which conflicted with my network address. Forced docker daemon to assign an IP so that it won't conflict and my issue is resolved.

谢谢