1.可用仓库
1.1.阿里云
- 2022年之后的镜像缺失(因为被墙了),但是网速极快
url
https://g4f7bois.mirror.aliyuncs.com
1.2.上海道客
- 持续更新,但是网速极慢
url
https://docker.m.daocloud.io
2.CentOS配置脚本
注意顺序。阿里云的放前面,因为速度快
。因为docker会依次从以下仓库查找,找到后开始pull
shell
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://g4f7bois.mirror.aliyuncs.com",
"https://docker.m.daocloud.io"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
3.所有系统配置方法见阿里云
图1

图2

图3
