最新解决:docker: Error response from daemon: Get “https://registry-1.docker.io/v2/“

docker拉镜像报这个错误:

yaml 复制代码
Unable to find image xxx locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": ile waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

公司数据库要去O,本地虚拟机想用docker安装OceanBase数据库研究下,发现镜像拉不下来了。怎么更换镜像源都是报下面这个错误,断断续续搞了一个月没有搞通。

直到今天又来修改镜像源,在/etc/docker/daemon.json配置文件改成如下配置:

yaml 复制代码
{
	  "registry-mirrors": [
          "https://docker.registry.cyou",
		  "https://docker-cf.registry.cyou",
		  "https://dockercf.jsdelivr.fyi",
		  "https://docker.jsdelivr.fyi",
		  "https://dockertest.jsdelivr.fyi",
		  "https://mirror.aliyuncs.com",
		  "https://dockerproxy.com",
		  "https://mirror.baidubce.com",
		  "https://docker.m.daocloud.io",
		  "https://docker.nju.edu.cn",
		  "https://docker.mirrors.sjtug.sjtu.edu.cn",
		  "https://docker.mirrors.ustc.edu.cn",
		  "https://mirror.iscas.ac.cn",
		  "https://docker.rainbond.cc"
      ]
}

保存配置后,执行:systemctl daemon-reload && systemctl restart docker,再拉居然成功了。



相关推荐
yuxb733 分钟前
Docker学习笔记(二):镜像与容器管理
笔记·学习·docker
星期天要睡觉42 分钟前
Linux 综合练习
linux·运维·服务器
saynaihe1 小时前
proxmox8升级到proxmox9
linux·运维·服务器
Delphi菜鸟1 小时前
docker 部署RustDesk服务
运维·docker·容器
Orchestrator_me1 小时前
CentOS交换区处理
linux·运维·centos
FLS1681 小时前
VMwaer虚拟机安装完Centos后无法联网问题
linux·运维·centos
OctopusMonster1 小时前
centos下gdb调试python的core文件
linux·运维·centos
Sweety丶╮7941 小时前
【Kubernetes】知识点总结5
云原生·容器·kubernetes
wanhengidc2 小时前
云手机可以息屏挂手游吗?
运维·网络·安全·游戏·智能手机
一只小白菜~2 小时前
实战记录:H3C路由器IS-IS Level-1邻居建立与路由发布
运维·网络·计算机网络·智能路由器