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
|
if ! podman container exists {{ container }};then
|
||||||
podman container create \
|
podman container create \
|
||||||
--name {{ container }} \
|
--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 %}
|
{%- if args['volumes'] is defined %}
|
||||||
{%- for volume, mount in args['volumes'].items() %}
|
{%- for volume, mount in args['volumes'].items() %}
|
||||||
-v {{ container }}-{{ volume }}:{{ mount }} \
|
-v {{ container }}-{{ volume }}:{{ mount }} \
|
||||||
@ -143,4 +148,3 @@ while :; do
|
|||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user