forked from extern/podman-compose
FIXES #415: allow network_mode=slirp4netns
This commit is contained in:
parent
9af65ea112
commit
b9b2f83d04
@ -621,6 +621,8 @@ def get_net_args(compose, cnt):
|
|||||||
if net:
|
if net:
|
||||||
if net=="host":
|
if net=="host":
|
||||||
return ['--network', net]
|
return ['--network', net]
|
||||||
|
if net.startswith("slirp4netns:"):
|
||||||
|
return ['--network', net]
|
||||||
if net.startswith("service:"):
|
if net.startswith("service:"):
|
||||||
other_srv = net.split(":", 1)[1].strip()
|
other_srv = net.split(":", 1)[1].strip()
|
||||||
other_cnt = compose.container_names_by_service[other_srv][0]
|
other_cnt = compose.container_names_by_service[other_srv][0]
|
||||||
|
Loading…
Reference in New Issue
Block a user