forked from extern/podman-compose
add option to start podman in existing network namespace
This commit is contained in:
parent
9a08f85ffd
commit
bc5f0123d9
@ -795,6 +795,8 @@ def get_net_args(compose, cnt):
|
||||
net_args.extend(["--network", net])
|
||||
elif net.startswith("slirp4netns:"):
|
||||
net_args.extend(["--network", net])
|
||||
elif net.startswith("ns:"):
|
||||
net_args.extend(["--network", net])
|
||||
elif net.startswith("service:"):
|
||||
other_srv = net.split(":", 1)[1].strip()
|
||||
other_cnt = compose.container_names_by_service[other_srv][0]
|
||||
|
Loading…
Reference in New Issue
Block a user