FIXES #415: allow network_mode=slirp4netns

This commit is contained in:
Muayyad alsadi 2022-02-12 17:39:42 +02:00
parent 9af65ea112
commit b9b2f83d04

View File

@ -621,6 +621,8 @@ def get_net_args(compose, cnt):
if net:
if net=="host":
return ['--network', net]
if net.startswith("slirp4netns:"):
return ['--network', net]
if net.startswith("service:"):
other_srv = net.split(":", 1)[1].strip()
other_cnt = compose.container_names_by_service[other_srv][0]