error pulling image configuration: download failed after attempts=6: dial tcp 47.88.58.234:443: conn
✅问题描述
记录一个bug,最近重装下腾讯云服务器后,发现docker拉去镜像超时拉去不下来,报错如下:
error pulling image configuration: download failed after attempts=6: dial tcp 47.88.58.234:443: connect: connection refused
✅解决
设置国内镜像
1.创建/etc/docker目录
sudo mkdir -p /etc/docker
2.创建docker镜像配置文件
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://ox288s4f.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://mirror.ccs.tencentyun.com"
]
}
EOF
3.重启
sudo systemctl daemon-reload
sudo systemctl restart docker
或者
sudo service docker restart
原文地址:https://blog.csdn.net/mjh1667002013/article/details/140001206
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!