Docker镜像加速器

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["阿里云镜像加速器"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

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

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

posted @ 2020-07-25 18:12  暗渡陈仓xy  阅读(561)  评论(0编辑  收藏  举报