I'm running a container with docker-compose from a Macbook Pro inside my company LAN, and the problem is that default IP and subnet assigned to the container are not "supported" in my company.
For instance right now I have a bridge network with subnet 172.21.0.0/16
, but I need it to be 172.26.0.0/16
(as on my MBP) to be compliant with my corporate DHCP server; also, I need the container to ask my DHCP server for the IP , in order to avoid duplicates on the network. I can't use static IP.
Does anyone know how to configure it? Any help is appreciated.
Here's the setup:
您好,如果可以尝试下面的链接,可能对您配置4种配置与Docker的连接的方式很有用
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.