docker-daemon.json
Posted kylingx
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker-daemon.json相关的知识,希望对你有一定的参考价值。
touch /etc/docker/daemon.json
cat > /etc/docker/daemon.json <<EOF
{
"oom-score-adjust": -1000,
"log-driver": "json-file",
"log-opts": {
"max-size": "100m",
"max-file": "3"
},
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 10,
"bip": "169.254.123.1/24",
"registry-mirrors": ["https://2inti5wg.mirror.aliyuncs.com"],
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
]
}
EOF
systemctl daemon-reload && systemctl restart docker
以上是关于docker-daemon.json的主要内容,如果未能解决你的问题,请参考以下文章
docker配置文件docker-daemon.json详解