Files
podman/test/compose/ipam_set_ip/docker-compose.yml
Paul Holzinger 2f5025a2d7 compat API: allow MacAddress on container config
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>
2022-12-05 16:52:36 +01:00

19 lines
298 B
YAML

version: "3.2"
services:
test:
image: alpine
mac_address: 32:b5:b2:55:48:72
networks:
net1:
ipv4_address: 10.123.0.253
tty: true
command: ["top"]
networks:
net1:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.123.0.0/24