国内epel源

配置阿里镜像源和epel源

curl -k -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y epel-release wget
mkdir -p /etc/yum.repos.d/bak
mv /etc/yum.repos.d/epel*.repo /etc/yum.repos.d/bak
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache fast

 

创建或修改 /etc/docker/daemon.json 文件

vim /etc/docker/daemon.json
{ "registry-mirrors": ["https://cr.console.aliyun.com","http://hub-mirror.c.163.com"] }
systemctl restart docker.service

 

Docker中国区官方镜像
https://registry.docker-cn.com

网易
http://hub-mirror.c.163.com

ustc 
https://docker.mirrors.ustc.edu.cn

中国科技大学
https://docker.mirrors.ustc.edu.cn

阿里云容器  服务
https://cr.console.aliyun.com/

 

posted @ 2020-06-06 16:02  士官长  阅读(878)  评论(0编辑  收藏  举报