Docker 仓库国内镜像加速源
2024-10-22
4
1.仓库镜像对应表
原始 | 镜像 |
docker.io | ***.mirror.aliyuncs.com(点进去登录查看) hub-mirror.c.163.com dockerproxy.com |
quay.io | quay.mirrors.ustc.edu.cn |
registry.k8s.io | registry.lank8s.cn 下面的不全,适合kubeadm init时使用: registry.aliyuncs.com/google_containers/ registry.cn-hangzhou.aliyuncs.com/google_containers |
gcr.io | gcr.lank8s.cn |
2.public-image-mirror(只支持比较流行的镜像:支持列表)
https://github.com/DaoCloud/public-image-mirror
源站 | 替换为 |
---|---|
cr.l5d.io | l5d.m.daocloud.io |
docker.elastic.co | elastic.m.daocloud.io |
docker.io | docker.m.daocloud.io |
gcr.io | gcr.m.daocloud.io |
ghcr.io | ghcr.m.daocloud.io |
k8s.gcr.io | k8s-gcr.m.daocloud.io |
registry.k8s.io | k8s.m.daocloud.io |
mcr.microsoft.com | mcr.m.daocloud.io |
nvcr.io | nvcr.m.daocloud.io |
quay.io | quay.m.daocloud.io |
registry.jujucharms.com | jujucharms.m.daocloud.io |
rocks.canonical.com | rocks-canonical.m.daocloud.io |
3.Linux全局配置示例
sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json <<-'EOF'{ "registry-mirrors": [ "https://hub-mirror.c.163.com/", "https://dockerproxy.com/" ]}EOFsudo systemctl daemon-reloadsudo systemctl restart docker
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
本页链接:https://docker.ciilii.com/show/news-268.html