一、找加速地址

https://promotion.aliyun.com/ntms/act/kubernetes.html

控制台

CentOS7为docker-ce配置阿里云镜像加速器

CentOS7为docker-ce配置阿里云镜像加速器

二、添加daemon.json 文件

vim /etc/docker/daemon.json
#添加
{
  "registry-mirrors": ["https://XXX.mirror.aliyuncs.com"]
}

三、reload和restart

systemctl daemon-reload

systemctl restart docker

 

相关文章: