eoalfj

Docker 配置阿里镜像

Dokcer 拉取镜像非常慢,配置阿里镜像加速。

步骤

首先注册阿里云,找到 “容器镜像服务” --> “镜像加速器” ,复制加速器地址,例如:

https://xxxxxxxx.mirror.aliyuncs.com

编辑 /etc/docker/daemon.json,配置

{
  "registry-mirrors": ["https://xxxxxxxx.mirror.aliyuncs.com"]
}

重启 docker

systemctl restart docker

再次尝试拉取镜像,速度大大提升

分类:

技术点:

相关文章:

  • 2021-11-15
  • 2021-12-29
  • 2021-08-06
  • 2021-12-15
  • 2021-12-14
  • 2021-11-05
  • 2021-12-15
  • 2021-12-05
猜你喜欢
  • 2021-11-05
  • 2021-11-22
  • 2021-11-05
  • 2021-12-14
  • 2021-11-05
  • 2021-12-05
  • 2021-12-15
相关资源
相似解决方案