centos8安装docker,报错及其处理1.2.2-3, but none of the providers can be installed yum install

centos8.0的ECS机器,安装docker出现了错误,错误信息如下
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
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

[root@GPSmaster ~]# sudo yum install docker-ce docker-ce-cli containerd.io
Last metadata expiration check: 0:05:07 ago on Wed 22 Jul 2020 06:30:51 PM CST.
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)
[root@GPSmaster ~]# 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:06:26 ago on Wed 22 Jul 2020 06:30:51 PM CST.
containerd.io-1.2.6-3.3.fc30.x86_64.rpm                                          3.6 MB/s |  21 MB     00:05    
Dependencies resolved.
=================================================================================================================
 Package                  Architecture  Version                                        Repository           Size
=================================================================================================================
Installing:
 containerd.io            x86_64        1.2.6-3.3.fc30                                 @commandline         21 M
Installing dependencies:
 container-selinux        noarch        2:2.124.0-1.module_el8.2.0+305+5e198a41        AppStream            47 k
Enabling module streams:
 container-tools                        rhel8                                                                   

Transaction Summary
=================================================================================================================
Install  2 Packages

Total size: 21 M
Total download size: 47 k
Installed size: 84 M
Is this ok [y/N]: y
Downloading Packages:
container-selinux-2.124.0-1.module_el8.2.0+305+5e198a41.noarch.rpm               2.8 MB/s |  47 kB     00:00    
-----------------------------------------------------------------------------------------------------------------
Total                                                                            2.6 MB/s |  47 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                         1/1 
  Running scriptlet: container-selinux-2:2.124.0-1.module_el8.2.0+305+5e198a41.noarch                        1/2 
  Installing       : container-selinux-2:2.124.0-1.module_el8.2.0+305+5e198a41.noarch                        1/2 
  Running scriptlet: container-selinux-2:2.124.0-1.module_el8.2.0+305+5e198a41.noarch                        1/2 
  Installing       : containerd.io-1.2.6-3.3.fc30.x86_64                                                     2/2 
  Running scriptlet: containerd.io-1.2.6-3.3.fc30.x86_64                                                     2/2 
  Running scriptlet: container-selinux-2:2.124.0-1.module_el8.2.0+305+5e198a41.noarch                        2/2 
  Running scriptlet: containerd.io-1.2.6-3.3.fc30.x86_64                                                     2/2 
  Verifying        : container-selinux-2:2.124.0-1.module_el8.2.0+305+5e198a41.noarch                        1/2 
  Verifying        : containerd.io-1.2.6-3.3.fc30.x86_64                                                     2/2 

Installed:
  container-selinux-2:2.124.0-1.module_el8.2.0+305+5e198a41.noarch      containerd.io-1.2.6-3.3.fc30.x86_64     

Complete!
[root@GPSmaster ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
[root@GPSmaster ~]# yum install -y docker-ce
Docker CE Stable - x86_64                                                         17 kB/s | 3.5 kB     00:00    
Dependencies resolved.
=================================================================================================================
 Package                   Architecture       Version                         Repository                    Size
=================================================================================================================
Installing:
 docker-ce                 x86_64             3:19.03.12-3.el7                docker-ce-stable              24 M
Installing dependencies:
 docker-ce-cli             x86_64             1:19.03.12-3.el7                docker-ce-stable              38 M
 libcgroup                 x86_64             0.41-19.el8                     BaseOS                        70 k

Transaction Summary
=================================================================================================================
Install  3 Packages

Total download size: 62 M
Installed size: 263 M
Downloading Packages:
(1/3): libcgroup-0.41-19.el8.x86_64.rpm                                          4.3 MB/s |  70 kB     00:00    
(2/3): docker-ce-19.03.12-3.el7.x86_64.rpm                                       951 kB/s |  24 MB     00:25    
(3/3): docker-ce-cli-19.03.12-3.el7.x86_64.rpm                                   1.4 MB/s |  38 MB     00:28    
-----------------------------------------------------------------------------------------------------------------
Total                                                                            2.2 MB/s |  62 MB     00:28     
warning: /var/cache/dnf/docker-ce-stable-091d8a9c23201250/packages/docker-ce-19.03.12-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Docker CE Stable - x86_64                                                        4.2 kB/s | 1.6 kB     00:00    
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
 From       : https://download.docker.com/linux/centos/gpg
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                         1/1 
  Installing       : docker-ce-cli-1:19.03.12-3.el7.x86_64                                                   1/3 
  Running scriptlet: docker-ce-cli-1:19.03.12-3.el7.x86_64                                                   1/3 
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                                                            2/3 
  Installing       : libcgroup-0.41-19.el8.x86_64                                                            2/3 
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                                                            2/3 
  Installing       : docker-ce-3:19.03.12-3.el7.x86_64                                                       3/3 
  Running scriptlet: docker-ce-3:19.03.12-3.el7.x86_64                                                       3/3 
  Verifying        : libcgroup-0.41-19.el8.x86_64                                                            1/3 
  Verifying        : docker-ce-3:19.03.12-3.el7.x86_64                                                       2/3 
  Verifying        : docker-ce-cli-1:19.03.12-3.el7.x86_64                                                   3/3 

Installed:
  docker-ce-3:19.03.12-3.el7.x86_64    docker-ce-cli-1:19.03.12-3.el7.x86_64    libcgroup-0.41-19.el8.x86_64   

Complete!
[root@GPSmaster ~]# systemctl start docker
[root@GPSmaster ~]# systemctl enable docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
[root@GPSmaster ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

docker安装的步骤

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl start docker
systemctl enable docker
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

MonkeyKing.sun

对你有帮助的话,可以打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值