moby/daemon/network
Rob Murray 2b036fb1da
Remove generated MAC addresses on restart.
The MAC address of a running container was stored in the same place as
the configured address for a container.

When starting a stopped container, a generated address was treated as a
configured address. If that generated address (based on an IPAM-assigned
IP address) had been reused, the containers ended up with duplicate MAC
addresses.

So, remember whether the MAC address was explicitly configured, and
clear it if not.

Signed-off-by: Rob Murray <rob.murray@docker.com>
(cherry picked from commit cd53b7380c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-22 19:51:54 +01:00
..
filter.go Network: add support for 'dangling' filter 2019-02-27 15:08:44 -05:00
filter_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
settings.go Remove generated MAC addresses on restart. 2024-01-22 19:51:54 +01:00