为什么要加速

因为docker的运行需要在本地有相关的镜像,如果本地没有,就会去镜像仓库里面下载到本地,再运行,有时候下载比较慢,所以要配置镜像加速

 

阿里云的加速

 

找到加速地址

https://homenew.console.aliyun.com/

Docker加速配置

 

 

 

 Docker加速配置

 

 

 

 

 

编辑
vim /etc/docker/daemon.json


修改配置

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

 



刷新重启

systemctl daemon -reload

system restart docker

 

相关文章:

  • 2021-08-14
  • 2022-12-23
  • 2021-05-08
  • 2021-09-04
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
猜你喜欢
  • 2021-11-30
  • 2021-05-27
  • 2021-08-03
  • 2021-06-02
  • 2021-07-06
  • 2021-05-28
相关资源
相似解决方案