AlmaLinuxに「requires containerd.io >= 1.2.2-3, but none of the providers can be installed」が発生してdockerがインストールできない

AlmaLinuxに「requires containerd.io >= 1.2.2-3, but none of the providers can be installed」が発生してdockerがインストールできない

AlmaLinuxに「requires containerd.io >= 1.2.2-3, but none of the providers can be installed」が発生してdockerがインストールできない場合の対処法を記述してます。

環境

  • OS  AlmaLinux 8.3

エラー全文

dockerインストール時に発生

sudo dnf install -y --nobest docker-ce docker-ce-cli

<出力結果>
メタデータの期限切れの最終確認: 0:02:21 時間前の 2021年04月08日 04時50分51秒 に実施しました。
エラー: 
 問題: 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
  - package containerd.io-1.3.7-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.3.7-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.3.9-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.3.9-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.4.3-3.2.el8.x86_64 conflicts with runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.4.3-3.2.el8.x86_64 obsoletes runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.4.4-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - package containerd.io-1.4.4-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-70.rc92.module_el8.3.0+2046+68fb1526.x86_64
  - problem with installed package buildah-1.16.7-4.module_el8.3.0+2046+68fb1526.x86_64
  - package buildah-1.16.7-4.module_el8.3.0+2046+68fb1526.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed
  - package runc-1.0.0-56.rc5.dev.git2abd837.module_el8.3.0+2044+12421f43.x86_64 is filtered out by modular filtering
  - package runc-1.0.0-64.rc10.module_el8.3.0+2045+4c10031c.x86_64 is filtered out by modular filtering
  - conflicting requests
  - package docker-ce-3:19.03.14-3.el8.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - package docker-ce-3:19.03.15-3.el8.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - package docker-ce-3:20.10.0-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - package docker-ce-3:20.10.1-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - package docker-ce-3:20.10.2-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - package docker-ce-3:20.10.3-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - package docker-ce-3:20.10.4-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - package docker-ce-3:20.10.5-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
(競合するパッケージを置き換えるには、コマンドラインに '--allowerasing' を追加してみてください または、'--skip-broken' を追加して、インストール不可のパッケージをスキップしてください)

対処法

containerd.ioが問題っぽいのでダウンロードしてインストールしました。

wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.2-3.3.el7.x86_64.rpm

削除しておきます。

sudo dnf remove containerd.io

インストールします。

sudo dnf install containerd.io-1.2.2-3.3.el7.x86_64.rpm

これで、自分の場合はインストールが可能になりました。