一:今天安装docker的时候,遇到这个报错
这个错误需
# Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
+ sh -c 'yum install -y -q yum-utils'
+ sh -c 'yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo'
Adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
+ '[' stable '!=' stable ']'
+ sh -c 'yum makecache'
CentOS-8 - AppStream 32 kB/s | 4.3 kB 00:00
CentOS-8 - Base 96 kB/s | 3.9 kB 00:00
CentOS-8 - Extras 44 kB/s | 1.5 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 113 kB/s | 4.7 kB 00:00
Docker CE Stable - x86_64 129 kB/s | 27 kB 00:00
Metadata cache created.
+ '[' -n '' ']'
+ sh -c 'yum install -y -q docker-ce'
Error:
Problem: package docker-ce-3:20.10.0-3.el7.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
- cannot install the best candidate for the job
- package containerd.io-1.4.3-3.1.el7.x86_64 is filtered out by modular filtering
二:解决方法:先安装 io
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
输入yes
三: