Docker加速配置

为什么要加速

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

阿里云的加速

找到加速地址

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

 

编辑
vim /etc/docker/daemon.json


修改配置

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



刷新重启

systemctl daemon -reload

system restart docker

猜你喜欢

转载自www.cnblogs.com/yucongblog/p/12942179.html