docker 设置阿里云镜像加速
docker 设置阿里云镜像加速
- 容器镜像服务 -> 镜像中心 -> 镜像加速器
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
- 根据操作文档步骤执行
CentOS
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://m5i6v2ry.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker