From 29a1ad339a573ac0928515a799ac01c1bfa693b8 Mon Sep 17 00:00:00 2001 From: Marcello Sylvester Bauer <sylv@mini.n1ce.space> Date: Sat, 20 Feb 2021 18:21:32 +0100 Subject: [PATCH] Support annotations Support annotations analog to "security opt" in commit 29e2bf4c. Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io> --- podman_compose.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index 3815421a..933910b5 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -518,6 +518,9 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'): sec = norm_as_list(cnt.get("security_opt", None)) for s in sec: podman_args.extend(['--security-opt', s]) + ann = norm_as_list(cnt.get("annotations", None)) + for a in ann: + podman_args.extend(['--annotation', a]) if cnt.get('read_only', None): podman_args.append('--read-only') for i in cnt.get('labels', []):