Add support for the group_add property of a service.

This commit is contained in:
molasses11 2023-03-28 15:27:33 +00:00 committed by Muayyad Alsadi
parent c55a2f4c26
commit efe3714266

View File

@ -852,6 +852,8 @@ def container_to_args(compose, cnt, detached=True):
podman_args.extend(["--cap-add", c])
for c in cnt.get("cap_drop", []):
podman_args.extend(["--cap-drop", c])
for item in cnt.get("group_add", []):
podman_args.extend(["--group-add", item])
for item in cnt.get("devices", []):
podman_args.extend(["--device", item])
for item in norm_as_list(cnt.get("dns", None)):