add option to start podman in existing network namespace

This commit is contained in:
Richard de Vos 2022-11-22 22:28:04 +01:00 committed by Muayyad Alsadi
parent 9a08f85ffd
commit bc5f0123d9

View File

@ -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]