2018-08-12 16:47:39 +08:00
|
|
|
{
|
2020-05-23 15:16:01 +08:00
|
|
|
"data-root": "{{ STORAGE_DIR }}",
|
2020-05-23 17:58:32 +08:00
|
|
|
"exec-opts": ["native.cgroupdriver=cgroupfs"],
|
2019-07-15 00:08:22 +08:00
|
|
|
{% 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 %}
|
2019-07-26 15:07:28 +08:00
|
|
|
"insecure-registries": {{ INSECURE_REG }},
|
2018-08-12 16:47:39 +08:00
|
|
|
"max-concurrent-downloads": 10,
|
2020-05-23 15:16:01 +08:00
|
|
|
"log-driver": "json-file",
|
|
|
|
"log-level": "warn",
|
2018-08-12 16:47:39 +08:00
|
|
|
"log-opts": {
|
2020-05-23 15:16:01 +08:00
|
|
|
"max-size": "15m",
|
|
|
|
"max-file": "3"
|
2018-08-29 22:12:02 +08:00
|
|
|
},
|
2020-05-23 15:16:01 +08:00
|
|
|
"storage-driver": "overlay2"
|
2018-08-12 16:47:39 +08:00
|
|
|
}
|