added podman options
This commit is contained in:
parent
c74abfbb99
commit
9e4da0f7f7
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user