As you mentioned pipework access the namespace after container is created. An equivalent way to do this with remote APIs is to proxy-DHCP on behalf of the container (given its MAC address, etc.) to the IPAM driver.
There is no access to the network namespace in IPAM driver if that's what you are looking for, understandably so for security concerns,
Some go dhcp implementations that you can adapt to doing proxy-dhcp:
Cheers,-Vipin
On Thursday, November 19, 2015 at 6:19:11 PM UTC-8, Sidharta Seethana wrote:Folks,I have run across multiple references (in github issues/blogs) to work in progress "DHCP IPAM Plugin" implementations. Does someone have pointers to these? I looked at the IPAM/Remote driver docs here : https://github.com/docker/libnetwork/tree/master/docs but it wasn't clear to me how certain aspects of DHCP could be handled with the network model currently in place. With pipework (https://github.com/jpetazzo/pipework), for example, the sandbox (netns) and the endpoint (e.g veth pair, with a generated mac address?) are created before a dhcp client runs inside this sandbox and an IP address is assigned. Could somebody provide a skeletal overview of how an equivalent mechanism could be implemented in this new world of libnetwork + plugins ?thanks!-Sidharta
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--