paulbsd-salt/states/docker/containers.sls
2021-10-30 18:37:52 +02:00

12 lines
260 B
Plaintext

---
{%- from "docker/map.jinja" import docker with context %}
{% for k,v in docker.containers.items() -%}
docker-container-{{ k }}:
docker_container.running:
- name: {{ k }}
{%- for i,j in v.items() %}
- {{ i }}: {{ j }}
{% endfor -%}
{% endfor -%}