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

24 lines
615 B
Plaintext
Raw Normal View History

2018-08-12 16:47:39 +08:00
{
2020-12-25 11:53:00 +08:00
"data-root": "{{ DOCKER_STORAGE_DIR }}",
2021-04-19 00:00:55 +08:00
"exec-opts": ["native.cgroupdriver={{ CGROUP_DRIVER }}"],
{% if ENABLE_MIRROR_REGISTRY %}
2020-12-25 11:53:00 +08:00
"registry-mirrors": [
"https://docker.nju.edu.cn/",
"https://kuamavit.mirror.aliyuncs.com"
2020-12-25 11:53:00 +08:00
],
{% endif %}
{% if ENABLE_REMOTE_API %}
"hosts": ["tcp://0.0.0.0:2376", "unix:///var/run/docker.sock"],
{% endif %}
"insecure-registries": {{ INSECURE_REG }},
2018-08-12 16:47:39 +08:00
"max-concurrent-downloads": 10,
"live-restore": true,
"log-driver": "json-file",
"log-level": "warn",
2018-08-12 16:47:39 +08:00
"log-opts": {
2021-01-25 00:02:45 +08:00
"max-size": "50m",
"max-file": "1"
2018-08-29 22:12:02 +08:00
},
"storage-driver": "overlay2"
2018-08-12 16:47:39 +08:00
}