第一个报错:Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
1.进入/etc/yum.repos.d路径下,找到docker-ce.repo文件,把对应 $releasever 修改成自己的Centos版本
2.然后输入,即可安装成功
yum install docker-ce docker-ce-cli containerd.io -y --nobest
第二种报错:openEule安装docker 遇到yum install -y yum-utils报错,No match for argument:Unable to find a match:
1.下载可用的.repo文件
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
2.输入带版本的安装命令就可以安了
sudo yum install -y --releasever=8 yum-utils