cd /etc/docker/
rm -f daemon.json
tee daemon.json <<- 'EOF'
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
],
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn","https://7uuu3esz.mirror.aliyuncs.com"],
"data-root": "/data/docker"
}
EOF