forked from extern/podman-compose
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:
parent
75a63df954
commit
5fabfee497
@ -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', []):
|
||||
|
Loading…
Reference in New Issue
Block a user