moby/integration/internal/container
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
..
container.go daemon: fix under what conditions container's mac-address is applied 2023-09-14 11:48:16 +02:00
exec.go gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
ns.go integration: port TestRunModePIDHost from CLI test to API test 2021-02-01 14:54:07 +09:00
ops.go daemon: fix under what conditions container's mac-address is applied 2023-09-14 11:48:16 +02:00
states.go integration: Add TestContainerWithAutoRemoveCanBeRestarted 2022-07-20 09:23:28 +02:00