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,再拉居然成功了。