1、关闭防火墙和selinux安全
systemctl stop firewalld && systemctl disable firewalld
systemctl stop iptables && systemctl disable iptables
setenforce 0
sed -i 's/SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
2、配置repo仓库,阿里华为二选一

华为源仓库

mv /etc/yum.repos.d/* /media/
curl -o /etc/yum.repos.d/huaweicloud.repo https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo
yum clean all && yum makecache

阿里源仓库

mv /etc/yum.repos.d/* /media/
curl -o /etc/yum.repos.d/aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all && yum makecache
3、配置docker仓库

阿里源仓库

curl -o /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast