赞
踩
拉取镜像一直失败
修改配置文件:
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保存并退出
docker重启
sudo systemctl daemon-reload
sudo systemctl restart docker
https://blog.csdn.net/feiyanaffection/article/details/135032893
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。