From 814bd2a31a49f67b859c5a3a48c715ee32ae1b9d Mon Sep 17 00:00:00 2001 From: Gagootron Date: Fri, 29 Apr 2022 10:36:22 +0200 Subject: [PATCH] Support driver_opts for networks --- podman_compose.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index 69cd6a4..9157043 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -718,6 +718,9 @@ def assert_cnt_nets(compose, cnt): driver = net_desc.get("driver", None) if driver: args.extend(("--driver", driver)) + driver_opts = net_desc.get("driver_opts", None) or {} + for key,value in driver_opts.items(): + args.extend(("--opt",f"{key}={value}")) ipam_config_ls = (net_desc.get("ipam", None) or {}).get( "config", None ) or []