【Docker】docker的daemon.json配置推荐
docker的daemon.json配置
·
1. 修改配置
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. 使配置生效
systemctl daemon-reload
systemctl restart docker
更多推荐
已为社区贡献1条内容
所有评论(0)