kubeasz/roles/docker/templates/daemon.json.j2

18 lines
477 B
Django/Jinja

{
{% if ENABLE_MIRROR_REGISTRY %}
"registry-mirrors": {{ REG_MIRRORS }},
{% endif %}
{% if ENABLE_REMOTE_API %}
"hosts": ["tcp://0.0.0.0:2376", "unix:///var/run/docker.sock"],
{% endif %}
"insecure-registries": {{ INSECURE_REG }},
"max-concurrent-downloads": 10,
"log-driver": "{{ LOG_DRIVER }}",
"log-level": "{{ LOG_LEVEL }}",
"log-opts": {
"max-size": "{{ LOG_MAX_SIZE }}",
"max-file": "{{ LOG_MAX_FILE }}"
},
"data-root": "{{ STORAGE_DIR }}"
}