- 修改daemon.json配置
vim /etc/docker/daemon.json
- 输入i 替换为:
{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": true, "features": { "buildkit": true }, "insecure-registries": [ "172.24.86.231" ], "registry-mirrors": [ "https://dockerproxy.com", "https://mirror.baidubce.com", "https://ccr.ccs.tencentyun.com", "https://docker.m.daocloud.io", "https://docker.nju.edu.cn", "https://docker.mirrors.ustc.edu.cn" ], "log-driver":"json-file", "log-opts": { "max-size":"500m", "max-file":"3" } }
- 输入:wq保存并退出,并重启服务
sudo systemctl daemon-reload sudo systemctl restart docker
标签:daemon,拉取,blog,failed,json,pulling,https,docker,true From: https://www.cnblogs.com/personblog/p/18347933