feat: Allow to execute command in container

This commit is contained in:
pulsar89.5 2024-05-06 15:08:54 +02:00
parent 91e8739aed
commit b1e2866635
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,8 @@ podman_containers: []
# - image: docker.io/wallabag/wallabag:latest
# name: wallbag
# userns: keep-id
# commands:
# - echo toto
# volumes:
# - wallbag-data:/var/www/wallabag/data
# - wallbag-image:/var/www/wallabag/web/assets/images

View File

@ -18,6 +18,10 @@ UserNS={{ container.userns }}
AutoUpdate=registry
{% for cmd in container.get('commands', []) %}
Exec={{ cmd }}
{% endfor %}
{% for volume in container.get('volumes', []) %}
Volume={{ volume }}
{% endfor %}