Skip to content

Commit

Permalink
fixes #852: do not pass --ipam-driver option when value set to default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fccagou committed Feb 20, 2024
1 parent 831caa6 commit c9d2092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c9d2092

Please sign in to comment.