报错
Errors during downloading metadata for repository 'mirrors.aliyun.com_docker-':
- Status code: 404 for http://mirrors.aliyun.com/docker-/repodata/repomd.xml (IP: 42.81.204.37)
Error: Failed to download metadata for repo 'mirrors.aliyun.com_docker-': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
可能默认安装的 docker 版本太高或者镜像仓库不稳定等原因,没有深究,第一次没安装成功,后来重新配置 Yum源。
进入目录
cd /etc/yum.repos.d
删除只剩CentOS_Base.Repo这一个,
find /xx -type f ! -name “CentOS-Base.repo” -exec rm -f {}
注意 :! 可能要转义 前面加个\ 组成 \!
然后更新数据原 yum update
之后就设置yum源 安装就可以了
喜欢就点个赞 谢谢