Fixed #440 on fedora

Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
This commit is contained in:
Kang HuaiShuai 2020-03-12 14:47:09 +08:00
parent e4a68ea7e4
commit fced7854ee
No known key found for this signature in database
GPG Key ID: 0A380828B1C243A7
2 changed files with 2 additions and 1 deletions

View File

@ -43,8 +43,8 @@ $ sudo yum install -y yum-utils \
$ sudo yum-config-manager \ $ sudo yum-config-manager \
--add-repo \ --add-repo \
https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
$ sudo sed -i 's/download.docker.com/mirrors.ustc.edu.cn\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
$ sudo sed -i 's/download.docker.com/mirrors.ustc.edu.cn\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
# 官方源 # 官方源
# $ sudo yum-config-manager \ # $ sudo yum-config-manager \

View File

@ -45,6 +45,7 @@ $ sudo dnf config-manager \
--add-repo \ --add-repo \
https://mirrors.ustc.edu.cn/docker-ce/linux/fedora/docker-ce.repo https://mirrors.ustc.edu.cn/docker-ce/linux/fedora/docker-ce.repo
$ sudo sed -i 's/download.docker.com/mirrors.ustc.edu.cn\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
# 官方源 # 官方源
# $ sudo dnf config-manager \ # $ sudo dnf config-manager \