1、在构建docker时,执行yum -y install gcc报一下错误
2、解决方案:更换镜像
执行以下指令:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、再次执行yum -y install gcc