centos7问题
- # CentOS-Base.repo
- #
- # The mirror system uses the connecting IP address of the client and the
- # update status of each mirror to pick mirrors that are updated to and
- # geographically close to the client. You should use this for CentOS updates
- # unless you are manually picking other mirrors.
- #
- # If the mirrorlist= does not work for you, as a fall back you can try the
- # remarked out baseurl= line instead.
- #
- #
-
- [base]
- name=CentOS-$releasever - Base - mirrors.huaweicloud.com
- baseurl=https://mirrors.huaweicloud.com/centos/$releasever/os/$basearch/
- #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
- gpgcheck=1
- gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
-
- #released updates
- [updates]
- name=CentOS-$releasever - Updates - mirrors.huaweicloud.com
- baseurl=https://mirrors.huaweicloud.com/centos/$releasever/updates/$basearch/
- #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
- gpgcheck=1
- gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
-
- #additional packages that may be useful
- [extras]
- name=CentOS-$releasever - Extras - mirrors.huaweicloud.com
- baseurl=https://mirrors.huaweicloud.com/centos/$releasever/extras/$basearch/
- #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
- gpgcheck=1
- gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
-
- #additional packages that extend functionality of existing packages
- [centosplus]
- name=CentOS-$releasever - Plus - mirrors.huaweicloud.com
- baseurl=https://mirrors.huaweicloud.com/centos/$releasever/centosplus/$basearch/
- #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
- gpgcheck=1
- enabled=0
- gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
复制代码
- wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.huaweicloud.com/docker-ce/linux/centos/docker-ce.repo
复制代码
- sudo sed -i 's+download.docker.com+mirrors.huaweicloud.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
复制代码
复制代码
|