mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

docker-compose sets the mac address in the container config and not the network endpoint config. This is ugly when you have more than one network, in this case docker just chooses the first network. Fixes #16411 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
11 lines
467 B
Bash
11 lines
467 B
Bash
# -*- bash -*-
|
|
|
|
ctr_name="ipam_set_ip_test_1"
|
|
if [ "$TEST_FLAVOR" = "compose_v2" ]; then
|
|
ctr_name="ipam_set_ip-test-1"
|
|
fi
|
|
podman container inspect "$ctr_name" --format '{{ .NetworkSettings.Networks.ipam_set_ip_net1.IPAddress }}'
|
|
is "$output" "10.123.0.253" "$testname : ip address is set"
|
|
podman container inspect "$ctr_name" --format '{{ .NetworkSettings.Networks.ipam_set_ip_net1.MacAddress }}'
|
|
is "$output" "32:b5:b2:55:48:72" "$testname : mac address is set"
|