本项目灵感来自:Thanks-Mirror,该项目分享的是docker镜像直接可用,质量好,速度快的镜像
在此,对那些提供公共仓库镜像的企业或组织,致以感谢🫡!
仓库地址 | 镜像地址 | 备注 |
---|---|---|
ghcr.io | ghcr.nju.edu.cn | 南京大学开源镜像站, nexus3 |
ghcr.tencentcloudcr.com | 仅腾讯云vpc内部访问,registry2 proxy | |
registry.k8s.io | registry-k8s-io.mirrors.sjtug.sjtu.edu.cn | 上海交通大学, registry2 proxy |
k8s.nju.edu.cn | 南京大学开源镜像站, nexus3 | |
k8s.gcr.io | gcr.nju.edu.cn | 南京大学开源镜像站, nexus3 |
k8s-gcr-io.mirrors.sjtug.sjtu.edu.cn | 上海交通大学 | |
k8s.tencentclouacr.com | 仅腾讯, 云vpc内部访问, registry2 proxy | |
quay.io | quay.nju.edu.cn | 南京大学开源镜像站, nexus3 |
quay.tencentcloudcr.com | 仅腾讯云vpc内部访问, registry2 proxy | |
quay.mirrors.ustc.edu.cn | 中科大 | |
nvcr.io | nvcr.nju.edu.cn | 南京大学开源镜像站, nexus3 |
nvcr.tencentcloudcr.com | 仅腾讯云vpc内部访问, registry2 proxy | |
docker.io | mirror.ccs.tencentyun.com | 仅腾讯云vpc内部访问, registry2 proxy |
docker.nju.edu.cn | 南京大学开源镜像站, nexus3 | |
docker.mirrors.sjtug.sjtu.edu.cn | 上海交通大学, registry2 proxy | |
docker.m.daocloud.io | 国内可用, 带宽低 | |
hub-mirror.c.163.com | 国内可用,更新慢 | |
*****.mirror.aliyuncs.com | 国内可用,更新慢 |
以argocd 清单文件为例:
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
第一步:确定原始镜像地址仓库
grep -n image: install.yaml
21645: image: quay.io/argoproj/argocd:v2.11.0
21739: image: ghcr.io/dexidp/dex:v2.38.0
21768: image: quay.io/argoproj/argocd:v2.11.0
21850: image: quay.io/argoproj/argocd:v2.11.0
21927: image: redis:7.0.14-alpine
22162: image: quay.io/argoproj/argocd:v2.11.0
22214: image: quay.io/argoproj/argocd:v2.11.0
22531: image: quay.io/argoproj/argocd:v2.11.0
22825: image: quay.io/argoproj/argocd:v2.11.0
第二步:在表格中找到仓库地址对应的镜像地址
如 quay.io 在表格中的镜像地址可选择quay.nju.edu.cn ghcr.io 在表格中的镜像地址可选择 ghcr.nju.edu.cn
第三步:使用sed替换仓库地址为镜像地址
sed -i 's#quay.io#quay.nju.edu.cn#g' install.yaml
sed -i 's#ghcr.io#ghcr.nju.edu.cn#g' install.yaml
第四步:检查修改后的
grep -n image: install.yaml
21645: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
21739: image: ghcr.nju.edu.cn/dexidp/dex:v2.38.0
21768: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
21850: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
21927: image: redis:7.0.14-alpine
22162: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
22214: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
22531: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
22825: image: quay.nju.edu.cn/argoproj/argocd:v2.11.0
Github仓库地址:https://github.com/kubesre/docker-registry-mirrors
大家如果觉得有用,麻烦GitHub上点个⭐️以示鼓励。