CentOS 安装docker.ce报错提示containerd.io >= 1.2.2-3问题

centos安装docker.ce遇到报错,提示如下

# yum install -y docker-ce
Last metadata expiration check: 0:01:49 ago on Fri Aug 14 22:21:34 2020.
Error:
 Problem: package docker-ce-3:19.03.12-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 filtered out by modular filtering
  - package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

解决办法,执行下面的命令:

# yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
Last metadata expiration check: 0:03:06 ago on Fri Aug 14 22:21:34 2020.
containerd.io-1.2.6-3.3.fc30.x86_64.rpm                                                                                      111 kB/s |  21 MB     03:17
Dependencies resolved.
=============================================================================================================================================================
 Package                                Architecture                    Version                                  Repository                             Size
=============================================================================================================================================================
Installing:
 containerd.io                          x86_64                          1.2.6-3.3.fc30                           @commandline                           21 M
     replacing  runc.x86_64 1.0.0-65.rc10.module_el8.2.0+305+5e198a41

Transaction Summary
=============================================================================================================================================================
Install  1 Package

再执行:yum install -y docker.ce 就可以正常安装了
欢迎大家关注我的CSDN微博,与大家一起探讨开发问题。

你可能感兴趣的:(Linux,docker,centos,linux,云计算,经验分享)