整体的安装步骤:https://www.cnblogs.com/innocenter/p/15852809.html
查看Yum源配置文件中$releasever信息:https://blog.youkuaiyun.com/frankie_wang/article/details/113449581
报错:
Errors during downloading metadata for repository ‘dockerrepo’:
- Curl error (6): Couldn’t resolve host name for https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml [Could not resolve host: yum.dockerproject.org]
Error: Failed to download metadata for repo ‘dockerrepo’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决:直接删除掉 /etc/yum.repos.d/ 路径下的 docker-ce.repo、docker.repo 等 docker开头的文件。删除之后,重新下载docker-ce.repo文件
报错:
- Status code: 404 for https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml (IP: 119.96.71.248)
- Curl error (28): Timeout was reached for http://mirrors.aliyuncs.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml [Connection timed out after 30000 milliseconds]
- Curl error (6): Couldn’t resolve host name for http://mirrors.cloud.aliyuncs.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml [Could not resolve host: mirrors.cloud.aliyuncs.com]
Error: Failed to download metadata for repo ‘base’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决:https://developer.aliyun.com/article/871767
报错: Couldn’t read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7]
解决:https://blog.youkuaiyun.com/maomao_op/article/details/122027470