mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-10 10:38:44 +02:00
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 <lisongmin@protonmail.com>
This commit is contained in:
parent
55642247e3
commit
346f7a57f0
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user