From 9f20aeccd454435dd0458b58b58497344b6304d8 Mon Sep 17 00:00:00 2001 From: fccagou Date: Tue, 20 Feb 2024 18:14:10 +0100 Subject: [PATCH] fix(ipam_driver): do not pass --ipam-driver option when value set to default podman returns _unsupported ipam driver "default"_ when `--imap-driver default` parameter is passed. So, when ipam driver is set to "default" in docker-compose.yml, --imap-driver must not be used when podman is called. --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index f39ab9af..7504de9b 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -762,7 +762,7 @@ async def assert_cnt_nets(compose, cnt): args.extend(("--opt", f"{key}={value}")) ipam = net_desc.get("ipam", None) or {} ipam_driver = ipam.get("driver", None) - if ipam_driver: + if ipam_driver and ipam_driver not in ("default"): args.extend(("--ipam-driver", ipam_driver)) ipam_config_ls = ipam.get("config", None) or [] if is_dict(ipam_config_ls):