Caennanu Posted March 9, 2022 Share Posted March 9, 2022 Gday all, I have a few dockers that i don't want to have a static ip, but i want them to get an ip from my DHCP server. If i want, i can make the docker ip static from the DHCP server side, if at all. However, currently it seems the dockers are getting an ip assigned that is outside of the DHCP scope (yes, even when bridging vlans). Is there a way they always contact the actual DHCP server instead of an internal thing that could cause me to have duplicates? Quote Link to comment
bonienl Posted March 9, 2022 Share Posted March 9, 2022 Docker uses its own dhcp server and containers get their IP address from this. In bridge mode a dedicated network range is defined accessed by NAT. For custom networks you need to configure the dhcp range under docker settings. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.