added podman options

This commit is contained in:
= 2022-11-15 11:50:10 +01:00
parent c74abfbb99
commit 9e4da0f7f7

View File

@ -19,6 +19,11 @@ function create_container() {
if ! podman container exists {{ container }};then
podman container create \
--name {{ container }} \
{%- if args['podman_options'] is defined %}
{%- for option, value in args['podman_options'].items() %}
--{{ option }} {{ value }} \
{%- endfor %}
{%- endif %}
{%- if args['volumes'] is defined %}
{%- for volume, mount in args['volumes'].items() %}
-v {{ container }}-{{ volume }}:{{ mount }} \
@ -143,4 +148,3 @@ while :; do
esac
shift
done