r/docker•
Weilbyte

Docker get container IP from DHCP Server

There is macvlan but iirc it doesn't work for getting IPs through DHCP. Was wondering if there has been any progress to making this work?

I have discovered Docker Pipework but unsure if there's a better way to do this.

Posted Mar 7, 2020, 9:06 PM UTC

24
whitewalkr•

I believe you have better shot writing own dhcp network plugin..last time I checked DHCP ipam in docker was still experimental and no plans to make it inbuilt ipam.

2
WeilbyteOP•

Aw rip. Made DHCP work with pipework. But not sure how stable this will be.

2
qw46wa3jdfgndr7•

If you can use another tool, podman has some plugins that do MacVLAN with DHCP

https://www.redhat.com/sysadmin/leasing-ips-podman has some more details

1
WeilbyteOP•

Cannot, but thanks either way.

1