最新解决: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,再拉居然成功了。



相关推荐
坚持就完事了9 分钟前
Linux的which命令
linux·运维·服务器
HealthScience18 分钟前
H20服务器多卡运行有错误gpu_partition ,tmux错误
linux·运维·服务器
RisunJan33 分钟前
Linux命令-netstat(查看Linux中网络系统状态信息)
linux·运维·服务器
SPC的存折44 分钟前
1、MySQL数据库基础
linux·运维·数据库·mysql
无忧.芙桃1 小时前
进程之环境变量
linux·运维·服务器
Chuncheng's blog1 小时前
K8S二进制部署exec unable to upgrade connection: Unauthorized异常解决方案
云原生·容器·kubernetes
chxii1 小时前
linux 下用 acme.sh 搞定 Nginx 免费 SSL 证书自动续期(下) 对于acme.sh命令安装详解
linux·运维·服务器
FJW0208141 小时前
HAProxy+Keepalived实现Kubernetes高可用集群部署
云原生·容器·kubernetes
小江的记录本2 小时前
【Swagger】Swagger系统性知识体系全方位结构化总结
java·前端·后端·python·mysql·spring·docker
Bert.Cai2 小时前
Linux more命令详解
linux·运维