Support annotations

Support annotations analog to "security opt" in commit 29e2bf4c.

Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
This commit is contained in:
Marcello Sylvester Bauer 2021-02-20 18:21:32 +01:00 committed by Muayyad Alsadi
parent 75a63df954
commit 5fabfee497

View File

@ -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', []):