Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试运行必须提供 DHCP + BOOTP 的 dnsmasq,但 dnsmask 在容器中运行时没有打开 67\udp 端口。
在主机系统上使用类似的配置文件,它可以正常工作。
我运行带有标志 -net host 和 -privileged 的容器,但这对我没有帮助。
为什么 dnsmasq 不想在容器中打开 67/udp(BOOTP 服务器)?我该如何解决它?
根本原因不在 docker 配置中。我错过了添加带有所需参数的配置文件 /etc/dnsmasq.d/default.conf 。添加后 67 端口被打开并暴露开始工作