解决方案如下:
没有安装wget,输入命令:yum -y install wget
1.先运行以下命令,下载和自己操作系统版本对应的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2.再更新yum包索引,建立缓存
yum makecache fast
3.最后重新安装验证
yum install docker-ce -y
docker启动成功
解决方案如下:
没有安装wget,输入命令:yum -y install wget
1.先运行以下命令,下载和自己操作系统版本对应的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2.再更新yum包索引,建立缓存
yum makecache fast
3.最后重新安装验证
yum install docker-ce -y
docker启动成功