如何阻止Docker使用所有容器IP填充/ etc / hosts


0

我已经启动了许多Docker容器(使用docker-py),并注意到/ etc / hosts中填充了所有容器的IP和名称,以及各种“.bridge”地址。

有可能阻止这种情况吗?理想情况下,我只想列出本地主机和链接容器(我没有将任何内容链接到大多数容器)。

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.