调整 Docker 镜像下载最大并发数
通过配置镜像上传\下载并发数max-concurrent-downloads,max-concurrent-uploads,缩短镜像上传\下载的时间。
单日志文件最大100m,最多三个日志文件
max-size和日志文件数量max-file,可以有效控制日志文件对磁盘的占用量
修改配置文件:
vim /etc/docker/daemon.json
{
"insecure-registries":["harbor.xxxx.com"],
"log-driver":"json-file",
"log-opts": {"max-size":"100m", "max-file":"3"},
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 10,
}
重启docker:
systemctl daemon-reload
systemctl restart docker.service