CentOS 8でdockerをインストールしようとすると、runc、Containerdなどの一連のファイルの競合が発生しました。

CentOS 8でdockerをインストールしようとすると、runc、Containerdなどの一連のファイルの競合が発生しました。

CentOS 8にdocker / docker-ceをインストールしようとすると、ファイルの競合エラーと思われるエラーが発生します。これも出てきましたCentOSにDockerをインストールする方法は?

だからこれは私がエラーを起こすためにしたことです。

dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

//Check for available versions and if its the latest just install it:
dnf list docker-ce
dnf install docker-ce

Error:
 Problem: problem with installed package podman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64
  - package podman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed
  - package containerd.io-1.3.7-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-65.rc10.module_el8.2.0+305+5e198a41.x86_64
  - package containerd.io-1.3.7-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-65.rc10.module_el8.2.0+305+5e198a41.x86_64
  - package docker-ce-3:19.03.13-3.el8.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - conflicting requests
  - package runc-1.0.0-64.rc10.module_el8.2.0+304+65a3c2ac.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)

もちろん --nobest も試してみましょう。

sudo  dnf install docker-ce --nobest

Last metadata expiration check: 0:17:51 ago on Thu 24 Sep 2020 01:51:30 PM EDT.
Error:
 Problem: problem with installed package podman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64
  - package podman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed
  - package containerd.io-1.3.7-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-65.rc10.module_el8.2.0+305+5e198a41.x86_64
  - package containerd.io-1.3.7-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-65.rc10.module_el8.2.0+305+5e198a41.x86_64
  - package docker-ce-3:19.03.13-3.el8.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - conflicting requests
  - package runc-1.0.0-64.rc10.module_el8.2.0+304+65a3c2ac.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)ting packages or '--skip-broken' to skip uninstallable packages)

試してみると--削除を許可、これはうまくいくかもしれません...しかし、これらのrunc、podman、およびContainerdファイルを削除しても安全ですか? ? ?後で効果がありますか?これらの主要なディストリビューションでこれが起こることは本当に奇妙ですが、信頼できるソリューションを見つけることができません。

ベストアンサー1

を含むpodmanパッケージを最初に削除してください。buildahdocker-ce

yum erase podman buildah

その後、以下をインストールできますdocker-ce

yum install docker-ce

または

dnf install docker-ce

おすすめ記事