镜像如下:
{
"registry-mirrors" :
[
"https://docker.m.daocloud.io",
"https://docker.jianmuhub.com",
"https://huecker.io",
"https://dockerhub.timeweb.cloud",
"https://dockerhub1.beget.com",
"https://noohub.ru"
]
}
docker.m.daocloud.io 走的阿里云,还能用的话,首选这个镜像!
jianmuhub 为北京BGP
Docker 一键配置脚本:
([ -f /etc/docker/daemon.json ] || mkdir -p /etc/docker) && echo '{ "registry-mirrors" : [ "https://docker.m.daocloud.io", "https://docker.jianmuhub.com", "https://huecker.io", "https://dockerhub.timeweb.cloud", "https://dockerhub1.beget.com", "https://noohub.ru" ] }' > /etc/docker/daemon.json && sudo systemctl restart docker && sleep 1 && docker info | grep -A 6 "Registry Mirrors"
如果添加配置无效,可以使用下面的方法免配置拉取镜像:
以拉取alpine镜像为例:
yandex 的docker镜像需要使用以下方式使用:
docker pull cr.yandex/mirror/alpine
aws(CloudFront,可优选IP)(移动联通首选):
Amazon ECR Public Gallery - Docker
docker pull public.ecr.aws/docker/library/alpine:edge
6.13更新:
暂时失效(已调整镜像顺序,不排除后续恢复):
https://noohub.ru
补充地址:
https://dockerhub1.beget.com
https://docker.jianmuhub.com 感谢 Ethan9527 提供
Podman 配置文件(路径:/etc/containers/registries.conf)
# unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.redhat.io", "docker.io"]
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "docker.m.daocloud.io"
[[registry.mirror]]
location = "docker.jianmuhub.com"
[[registry.mirror]]
location = "dockerhub.timeweb.cloud"
[[registry.mirror]]
location = "dockerhub1.beget.com"
[[registry.mirror]]
location = "huecker.io"
[[registry.mirror]]
location = "noohub.ru"
资料来源:
Использование Docker из РФ |arty.dev (artydev.ru)
附yandex其他镜像:
Index of / (yandex.ru)
高级解决方案:
修改docker源码,添加ECH、分片