docker更换国内加速器-更换华为加速器2025-717亲测可用docker 拉取镜像出错
[root@localhost ~]# docker pull nginx
Using default tag: latest
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
报错原因就是加速器失效,超时导致拉不下来,经过这几天测试阿里云的加速器是拉不了的
解决办法更换加速器
在华为云上注册账号
容器镜像服务-控制台
https://console.huaweicloud.com/swr/?region=cn-east-3#/swr/mirror
点击镜像加速器
执行systemctl restart docker
成功拉取
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/ljh20040217/article/details/146016786