1. 修改配置文章来源:https://www.toymoban.com/news/detail-627766.html
vim /etc/docker/daemon.json
#修改自己镜像加速地址
{
"registry-mirrors": [
"镜像加速地址"
],
"exec-opts": ["native.cgroupdriver=systemd"],
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 5,
"log-opts": {
"max-size": "300m",
"max-file": "2"
},
"live-restore": true
}
2. 使配置生效文章来源地址https://www.toymoban.com/news/detail-627766.html
systemctl daemon-reload
systemctl restart docker
到了这里,关于【Docker】docker的daemon.json配置推荐的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!