国内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/

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM