Docs/CloudNative/Docker/daemon.json.md

19 lines
No EOL
539 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```json
{
"exec-opts": ["native.cgroupdriver=systemd"],
"registry-mirrors": ["https://yn64512p.mirror.aliyuncs.com"],
"insecure-registries": ["https://172.16.0.49:9443"],
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m",
"max-file": "3"
},
"live-restore": true
}
```
log-opts配置用于日志轮转日志最大的容量及保存的个数
live-restore: 重启docker不影响在运行容器的运行。