paulbsd-salt/states/docker/containers.sls

12 lines
260 B
Plaintext
Raw Normal View History

2021-10-30 18:37:52 +02:00
---
{%- 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 -%}