Error Containerd io Conflicts With Runc

Intro Error Containerd io Conflicts With Runc

這篇介紹Error Containerd io Conflicts With Runc。

情境

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@test ~]# yum install docker-ce docker-ce-cli containerd.io
Last metadata expiration check: 0:02:18 ago on Tue 03 Jan 2023 02:12:18 PM CST.
Error:
Problem: package containerd.io-1.6.14-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.4-1.module+el8.7.0+1078+e72fcd4f.x86_64
- package containerd.io-1.6.14-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.4-1.module+el8.7.0+1078+e72fcd4f.x86_64
- package containers-common-2:1-43.module+el8.7.0+1078+e72fcd4f.x86_64 requires oci-runtime, but none of the providers can be installed
- cannot install the best candidate for the job
- problem with installed package containers-common-2:1-43.module+el8.7.0+1078+e72fcd4f.x86_64
- package crun-0.18-3.module+el8.7.0+1076+9b1c11c1.x86_64 is filtered out by modular filtering
- package crun-1.5-1.module+el8.7.0+1077+0e4f03d4.x86_64 is filtered out by modular filtering
- package crun-1.5-1.module+el8.7.0+1078+e72fcd4f.x86_64 is filtered out by modular filtering
- package runc-1.0.0-73.rc95.module+el8.7.0+1076+9b1c11c1.x86_64 is filtered out by modular filtering
- package runc-1:1.1.4-1.module+el8.7.0+1077+0e4f03d4.x86_64 is filtered out by modular filtering
- package runc-1:1.1.4-1.module+el8.7.0+1078+e72fcd4f.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Solve:
$ yum install docker-ce docker-ce-cli containerd.io --allowerasing