19 lines
398 B
Django/Jinja
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"
|
|
}
|
|
}
|
|
|