/etc/docker/daemon.json 配置参数

Posted Fantasy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了/etc/docker/daemon.json 配置参数相关的知识,希望对你有一定的参考价值。

/etc/docker/daemon.json 配置参数:

参考:
http://www.mamicode.com/info-detail-2876703.html
https://blog.csdn.net/java_xinshou1/article/details/102620028
https://www.2cto.com/net/201808/773544.html

==========================================================

cat < /etc/docker/daemon.json
{
"log-driver": "journald",
"log-opts": {
"mode": "non-blocking",
"max-buffer-size": "8m"
},
"data-root": "/data/docker/containerd",
"insecure-registries": [
"192.168.10.100"
]
}
overlay2
{
"storage-driver": "overlay2",
"storage-opts": "overlay2.override_kernel_check=true",
"log-driver": "journald",
"log-opts": {
"mode": "non-blocking",
"max-buffer-size": "8m"
},
"data-root": "/data/docker/containerd",
"insecure-registries": [
"192.168.10.100"
]
}
EOF

以上是关于/etc/docker/daemon.json 配置参数的主要内容,如果未能解决你的问题,请参考以下文章

docker 配置文件:/etc/docker/daemon.json

/etc/docker/daemon.json 配置参数

docker配置参数详解---/etc/docker/daemon.json完整参数

docker-daemon.json

docker failed Result:start-limit 解决处理

Docker(十六)-Docker的daemon.json的作用