目前主流的公共Docker镜像源都不能在国内用了,因此可以用docker镜像的代理。
参考项目:https://github.com/DaoCloud/public-image-mirror
实例:
#将jellyfin/jellyfin:10.9.2换成你需要的镜像名和版本
docker pull m.daocloud.io/docker.io/jellyfin/jellyfin:10.9.2
#格式为 docker tag 代理镜像名:版本 原始镜像名:版本
docker tag m.daocloud.io/docker.io/jellyfin/jellyfin:10.9.2 jellyfin/jellyfin:10.9.2
#格式为 docker rmi 代理镜像名:版本
docker rmi m.daocloud.io/docker.io/jellyfin/jellyfin:10.9.2
2025.04.30更新:
目前发现还是有一些仓库能用的:
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://hub1.nat.tf",
"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.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"
]
}
(可参考 https://status.daocloud.io/status/docker、 https://blog.csdn.net/wxhzz/article/details/143785794)
在终端重新启动一下docker
systemctl daemon-reload
systemctl restart docker
(daocloud的镜像使用白名单制,如果自己要下的镜像不在白名单内,则要先 申请.)
(以及自部署镜像代理服务器 crproxy)