1.仓库镜像对应表
原始 | 镜像 |
docker.io |
***.mirror.aliyuncs.com(点进去登录查看) dockerproxy.com hub-mirror.c.163.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.Linux全局配置
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2",
"registry-mirrors": [
"https://hub-mirror.c.163.com/",
"https://dockerproxy.com/"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
标签:aliyuncs,cn,仓库,registry,io,镜像,Docker,com From: https://www.cnblogs.com/yfeil/p/18075114