错误:
1 | One of the configured repositories failed (Docker CE Stable - x86\_64), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: |
错误原因:
docker-ce.repo
中配置的镜像站无法找到对应的镜像
解决办法:
将docker-ce.repo
(linux查找方法: find -name docker-ce.repo
)
中的镜像地址替换为中科院提供的镜像地址
[docker-ce-stable\] name=Docker CE Stable - $basearch baseurl=
https://mirrors.ustc.edu.cn/docker-ce/linux/centos/7/$basearch/stable enabled=1 gpgcheck=1 gpgkey=https://mirrors.ustc.edu.cn/docker-ce/linux/centos/gpg