docker报错无法连接registry-1.docker.io,pull镜像失败的解决方案
更新时间:2026年03月20日 09:15:31 作者:北京秃子运维
这篇文章主要介绍了docker报错无法连接registry-1.docker.io,pull镜像失败的解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教
一、执行docker pull命令
拉取镜像失败:
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)

二、解决方案
解决的步骤如下:
1、打开daemon.json文件
sudo nano /etc/docker/daemon.json
2、将其镜像地址进行替换
```bash
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://hub.uuuadc.top",
"https://docker.anyhub.us.kg",
"https://dockerhub.jobcher.com",
"https://dockerhub.icu",
"https://docker.ckyl.me",
"https://docker.awsl9527.cn",
"https://mirror.baidubce.com"
]
}
三、重启docker服务
systemctl daemon-reload systemctl restart docker
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
- 解决docker pull报错Get"https://registry-1.docker.io/v2/": net/http: request canceled while waiting for c的问题
- Docker pull时报错:https://registry-1.docker.io/v2/完美解决办法
- docker配置镜像Docker pull时报错:https://registry-1.docker.io/v2/问题
- Docker pull报错:https://registry-1.docker.io/v2/的解决方法
- 解决Docker pull拉取镜像报错“Error response from daemon:Get“https://registry-1.docker.io/v2”问题
- docker拉取镜像报错:Error response from daemon: Get “https://registry-1.docker.io/v2/“: dial tcp的解决方案
- docker Get https://registry-1.docker.io/v2/: net/http: request canceled 报错
- 解决Docker镜像拉取超时及优化网络配置的方法(failed to do request: Head “https://registry-1.docker.io/v2/*)
相关文章
浅谈docker Dockerfile 指令 VOLUME 介绍
本篇文章主要介绍了浅谈docker Dockerfile 指令 VOLUME 介绍 ,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧2017-02-02
centos7搭建docker私人仓库的方法(kubernetes)
这篇文章主要介绍了centos7搭建docker私人仓库的方法(kubernetes),小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧2018-03-03
SQL Server 简介与 Docker Compose 部署SQL Server 容器
SQL Server 是一个功能强大的关系型数据库管理系统,适用于各种规模的应用程序和数据存储需求,在本文中,我将简要介绍 SQL Server 的基本概念,并详细阐述如何使用 Docker Compose 部署 SQL Server 容器,感兴趣的朋友跟随小编一起看看吧2023-10-10


最新评论