國內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