如果安装时报错
错误:
问题: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
\- cannot install the best candidate for the job
\- package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
\- package containerd.io-1.2.13-3.1.el7.x86_64 is excluded
\- package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
\- package containerd.io-1.2.2-3.el7.x86_64 is excluded
\- package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
\- package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
\- package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
(尝试添加 ‘–skip-broken’ 来跳过无法安装的软件包 或 ‘–nobest’ 来不只使用最佳选择的软件包)
大意是要先安装大于等于1.2.2-3版本的containerd.io 。其它安装方式报错:“未找到匹配的参数: docker-io”,也是因为没有安装版本适合的containerd.io。解决方式如下
\# 先安装大于等于1.2.2-3版本的containerd.io,注意系统、containerd.io版本
dnf install https://download.docker.com/linux/