- #编辑 docker 配置文件
- VIM /etc/docker/daemon.JSON
- {
- "registry-mirrors": ["http:// 阿里云加速器地址 http://xn--9kqu2h8zd4wakc5084bzpclum/"],
- # 私有仓库地址
- "insecure-registries": ['私有仓库地址 {192.168.1.1:5000}'],
- #docker 日志大小限制
- "log-driver":"json-file",
- "log-opts": {
- "max-file": "3",
- "max-size": "500m"
- }
- }
来源: http://www.bubuko.com/infodetail-3683634.html