From 5b0fed4c96fdad2eec216e345ebeba07888bc83c Mon Sep 17 00:00:00 2001 From: = Date: Tue, 28 Mar 2023 15:57:56 +0200 Subject: [PATCH] added run option to container --- podman/files/container.sh.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/podman/files/container.sh.jinja b/podman/files/container.sh.jinja index 090921b..88ae559 100644 --- a/podman/files/container.sh.jinja +++ b/podman/files/container.sh.jinja @@ -46,7 +46,9 @@ function create_container() { --device {{ key }}:{{ value}} \ {%- endfor %} {%- endif %} - {{ args['image'] }}:{{ args['tag'] }} + {{ args['image'] }}:{{ args['tag'] }}{%- if args['run'] is defined %} \ + {{ args['run'] }} + {%- endif %} fi }