ansible/roles/docker/templates/daemon.json.j2
2021-01-09 20:54:42 +03:00

19 lines
398 B
Django/Jinja

{% if docker is defined %}
{% if docker.insecure_registries is defined %}
{% set insecure_registries = docker.insecure_registries %}
{% endif %}
{% endif %}
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
{% if insecure_registries is defined %}
"insecure-registries" : ["{{ insecure_registries }}"],
{% endif %}
"log-opts": {
"max-size": "100m"
}
}