docker hub 使用阿里云的镜像加速,并修改docker image 存放的目录 - xd21303/Notebook GitHub Wiki

登录阿里云账号,管理控制台-容器镜像服务-镜像加速器

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://ax25sggb.mirror.aliyuncs.com"],
  "graph": "/new-path/docker"
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

参考:

https://blog.51cto.com/forangela/1949947