Docker 阿里云镜像地址
直接粘贴到shell终端即可
mkdir-p /etc/docker cat >/etc/yum.repos.d/Centos-docker.repo < [base] name=docker nightly baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/nightly gpgcheck=0enabled=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 [base1] name=docker stable baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable gpgcheck=0enabled=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 EOF tee /etc/docker/daemon.json < { "registry-mirrors": ["https://5twf62k1.mirror.aliyuncs.com"] } EOF systemctl daemon-reload systemctl restart docker
Kubernetes 阿里云镜像地址
直接粘贴到shell终端即可
cat < /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/ enabled=1gpgcheck=1repo_gpgcheck=1gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg EOF yum clean all yum makecache -yyum repolist all
Centos7 阿里云镜像地址
直接粘贴到shell终端即可
cat >/etc/yum.repos.d/Centos.repo < [base] name=CentOS-7 - Base - mirrors.aliyun.com failovermethod=priority baseurl=http://mirrors.aliyun.com/centos/7/os/x86_64 http://mirrors.aliyun.com/centos/7/os/x86_64/ http://mirrors.aliyun.com/centos/7/os/x86_64/ gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-7 - Updates - mirrors.aliyun.com failovermethod=priority baseurl=http://mirrors.aliyun.com/centos/7/updates/x86_64/ http://mirrors.aliyun.com/centos/7/updates/x86_64/ http://mirrors.aliyun.com/centos/7/updates/x86_64/ gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful[extras] name=CentOS-7 - Extras - mirrors.aliyun.com failovermethod=priority baseurl=http://mirrors.aliyun.com/centos/7/extras/x86_64/ http://mirrors.aliyun.com/centos/7/extras/x86_64/ http://mirrors.aliyun.com/centos/7/extras/x86_64/ gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages[centosplus] name=CentOS-7 - Plus - mirrors.aliyun.com failovermethod=priority baseurl=http://mirrors.aliyun.com/centos/7/centosplus/x86_64/ http://mirrors.aliyun.com/centos/7/centosplus/x86_64/ http://mirrors.aliyun.com/centos/7/centosplus/x86_64/ gpgcheck=1enabled=0gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #contrib - packages by Centos Users[contrib] name=CentOS-7 - Contrib - mirrors.aliyun.com failovermethod=priority baseurl=http://mirrors.aliyun.com/centos/7/contrib/x86_64/ http://mirrors.aliyun.com/centos/7/contrib/x86_64/ http://mirrors.aliyun.com/centos/7/contrib/x86_64/ gpgcheck=1enabled=0gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 EOF