feat: Allow to execute command in container
This commit is contained in:
parent
91e8739aed
commit
b1e2866635
@ -8,6 +8,8 @@ podman_containers: []
|
|||||||
# - image: docker.io/wallabag/wallabag:latest
|
# - image: docker.io/wallabag/wallabag:latest
|
||||||
# name: wallbag
|
# name: wallbag
|
||||||
# userns: keep-id
|
# userns: keep-id
|
||||||
|
# commands:
|
||||||
|
# - echo toto
|
||||||
# volumes:
|
# volumes:
|
||||||
# - wallbag-data:/var/www/wallabag/data
|
# - wallbag-data:/var/www/wallabag/data
|
||||||
# - wallbag-image:/var/www/wallabag/web/assets/images
|
# - wallbag-image:/var/www/wallabag/web/assets/images
|
||||||
|
@ -18,6 +18,10 @@ UserNS={{ container.userns }}
|
|||||||
|
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
|
|
||||||
|
{% for cmd in container.get('commands', []) %}
|
||||||
|
Exec={{ cmd }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% for volume in container.get('volumes', []) %}
|
{% for volume in container.get('volumes', []) %}
|
||||||
Volume={{ volume }}
|
Volume={{ volume }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user