From f050dac6f9edd728c4874d96b3bac4719f0d94ed Mon Sep 17 00:00:00 2001 From: Songmin Li Date: Thu, 19 Dec 2024 10:44:29 +0800 Subject: [PATCH] Ignore creating networks on network_mode=bridge. When using bridge mode, podman-compose will use the default `podman` network. We do not need to create this network, so just return as other network_mode. Signed-off-by: Songmin Li --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 25ccfdba..81132e17 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -855,7 +855,7 @@ async def assert_cnt_nets(compose, cnt): create missing networks """ net = cnt.get("network_mode") - if net and not net.startswith("bridge"): + if net: return cnt_nets = cnt.get("networks")