共计 387 个字符,预计需要花费 1 分钟才能阅读完成。
使用 systemd
▶ cat /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
},
"exec-opts": ["native.cgroupdriver=systemd"],
"data-root": "/data/docker",
"insecure-registries":["192.168.233.214"],
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Hard": 64000,
"Soft": 64000
}
},
"storage-driver": "overlay2",
"storage-opts": ["overlay2.override_kernel_check=true"],
"mtu": 1450
}
正文完