Skip to content

Commit

Permalink
Support annotations
Browse files Browse the repository at this point in the history
Support annotations analog to "security opt" in commit 29e2bf4.

Signed-off-by: Marcello Sylvester Bauer <[email protected]>
  • Loading branch information
Marcello Sylvester Bauer authored and muayyad-alsadi committed Apr 29, 2021
1 parent 75a63df commit 5fabfee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', []):
Expand Down

0 comments on commit 5fabfee

Please sign in to comment.