mirror of
https://github.com/moby/moby.git
synced 2026-07-24 16:26:51 +00:00
The daemon would pass an EndpointCreateOption to set the interface MAC address if the network name and the provided network mode were matching. Obviously, if the network mode is a network ID, it won't work. To make things worse, the network mode is never normalized if it's a partial ID. To fix that: 1. the condition under what the container's mac-address is applied is updated to also match the full ID; 2. the network mode is normalized to a full ID when it's only a partial one. Signed-off-by: Albin Kerouanton <albinker@gmail.com>