Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow user to specify container's link-local addresses #23415
Allows docker containers to fit in deployments which make use of link-local IPs to segregate and expose local host services.
Follows usage example:
Link-local IPs are special IPs which belong to a well known subnet and are purely managed by the operator, usually dependent on the architecture where they are deployed. Therefore they are not managed by docker (IPAM driver). Libnetwork will honor the request, only check they are effectively of link-local type, and program them on the container's interface.
Signed-off-by: Alessandro Boch email@example.com
The regular IP addresses are accepted only on user-defined networks with configured subnets, and are maintained by the IPAM driver which ensures their uniqueness. The restriction does not need to apply to link-local addresses.
Even though as you said it could just be an implementation detail to separate the twos, we want to clearly separate link-local addresses from the regular