Currently, when a user creates a network, the user can pass IPAM options via --ipam-opt.
However, when a user creates a container, the user cannot pass IPAM options.
docker run --help | grep ipam
In conventional/traditional networking, e.g. DHCP, a request might contain the following options.
I suggest adding the ability to pass IPAM options at docker run and make sure that the options are passed all the way to /IpamDriver.RequestAddress endpoint. This way IPAM plugin would be capable of passing a lot more information to remote IPAM servers for the servers to make IP address management decisions.
For example, --ipam-opt vnid=<id> would allow IPAM driver to notify that the IP address request have VXLAN identifier associated with it. The IPAM servers would then use that information for routing purposes.