#编辑docker配置文件

vim /etc/docker/daemon.json
{
"registry-mirrors": ["http://阿里云加速器地址"],
#私有仓库地址
"insecure-registries": ['私有仓库地址{192.168.1.1:5000}'],
#docker日志大小限制
"log-driver":"json-file",
"log-opts": {
"max-file": "3",
"max-size": "500m"
}
}