针对 docker 被墙无法pull,配置可用的镜像地址
2023.6.18之后发现 docker pull
无法拉去镜像,经测试常用的国内镜像地址已经不可用,如:Docker中国区官方、清华、中科技大学、163、华为、部分阿里等
可用镜像如下:(2024年6月25日更)
https://dockerhub.timeweb.cloud timeweb
https://dockerhub.icu icu
https://docker.1panel.live 1panel
https://dockerhub.jobcher.com 打工人日记
https://hub.rat.dev rat
https://docker.anyhub.us.kg anyhub
https://docker.ckyl.me ckyl
https://docker.211678.top personal
https://noohub.ru error 500
https://dockerproxy.com 镜像代理Docker
https://docker.nju.edu.cn 南京大学
https://docker.mirrors.sjtug.sjtu.edu.cn 上海交通大学(网络较慢)
使用方法:
编辑或新建/etc/docker/daemon.json
文件,向其中添加registry-mirrors
项,使最终配置类似:
{
"registry-mirrors": ["https://dockerhub.icu"]
}
修改后重载守护进程
systemctl daemon-reload
systemctl restart docker
参考:
https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
https://www.v2ex.com/t/949738#r_13235392
https://linux.do/t/topic/114516