From efe37142663adcd2c7b0e437f73b99b0dc8f63d0 Mon Sep 17 00:00:00 2001 From: molasses11 Date: Tue, 28 Mar 2023 15:27:33 +0000 Subject: [PATCH] Add support for the `group_add` property of a service. --- podman_compose.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index 9f7f63d..39b2019 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -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)):