Skip to content

feature: pass IPAM options at docker run #2066

@greenpau

Description

@greenpau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions