1.仓库镜像对应表

原始镜像
docker.io

***.mirror.aliyuncs.com(点进去登录查看)

hub-mirror.c.163.com

dockerproxy.com

quay.ioquay.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.iogcr.lank8s.cn

 

2.public-image-mirror(只支持比较流行的镜像:支持列表

https://github.com/DaoCloud/public-image-mirror

源站替换为
cr.l5d.iol5d.m.daocloud.io
docker.elastic.coelastic.m.daocloud.io
docker.iodocker.m.daocloud.io
gcr.iogcr.m.daocloud.io
ghcr.ioghcr.m.daocloud.io
k8s.gcr.iok8s-gcr.m.daocloud.io
registry.k8s.iok8s.m.daocloud.io
mcr.microsoft.commcr.m.daocloud.io
nvcr.ionvcr.m.daocloud.io
quay.ioquay.m.daocloud.io
registry.jujucharms.comjujucharms.m.daocloud.io
rocks.canonical.comrocks-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