moby/integration/internal
Albin Kerouanton df983b7990
daemon: fix under what conditions container's mac-address is applied
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>
(cherry picked from commit 6cc6682f5f)
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
2023-09-14 11:48:16 +02:00
..
build fix some comments 2023-04-25 13:39:28 +08:00
container daemon: fix under what conditions container's mac-address is applied 2023-09-14 11:48:16 +02:00
network replace golint with revive, as it's deprecated 2022-07-04 10:15:54 +02:00
requirement integration: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
swarm integration: inline filters in tests 2023-04-25 15:15:50 +02:00
termtest test: Add tests for logging 2022-06-10 09:26:17 +02:00