目录
概述
步骤
参考资料
概述
自 2024-06-06 开始,阿里,腾讯、中科大等国内的 Docker Hub 镜像加速器相继停止服务,总结了网友整理出来一些其他国内 Docker Hub 镜像源,经过测试可以使用。
步骤
- 配置 Docker 守护程序
修改 /etc/docker/daemon.json 文件,修改其中的 registry-mirrors 参数的值为如下:
{"registry-mirrors": ["https://hub.uuuadc.top","https://docker.anyhub.us.kg","https://dockerhub.jobcher.com","https://docker.ckyl.me","https://docker.awsl9527.cn","https://ustc-edu-cn.mirror.aliyuncs.com/","https://ccr.ccs.tencentyun.com/","https://2a6bf1988cb6428c877f723ec7530dbc.mirror.swr.myhuaweicloud.com","https://hub-mirror.c.163.com","https://your_preferred_mirror","https://dockerhub.icu","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"]
}
重启Docker
# 重新加载 Systemd 配置
systemctl daemon-reload# 重新启动 Docker 服务
systemctl restart docker
参考资料
- Mirror | Docker Docs
- DockerHub国内镜像源列表(2024年6月18日 亲测可用) - 资源荟萃 - LINUX DO