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

点击镜像加速器

docker更换国内加速器-更换华为加速器2025-717亲测可用docker 拉取镜像出错_第1张图片

docker更换国内加速器-更换华为加速器2025-717亲测可用docker 拉取镜像出错_第2张图片
 

执行systemctl restart docker           

成功拉取       

docker更换国内加速器-更换华为加速器2025-717亲测可用docker 拉取镜像出错_第3张图片

        版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
                        
原文链接:https://blog.csdn.net/ljh20040217/article/details/146016786

你可能感兴趣的:(docker,容器,运维)