package docker-ce requires containerd.io >= 1.4.1, but none of the providers can be installed

I had this problem this morning for both update / upgrade on red hat (Linux 4.18.0-240.1.1.el8_3.x86_64), not sure what to do. Sounds like yum is completely stuck because of this.

$ sudo yum update
Updating Subscription Management repositories.
Last metadata expiration check: 2:40:27 ago on Wed 16 Dec 2020 07:53:10 AM CST.
Error: 
 Problem: package docker-ce-3:20.10.1-3.el7.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - cannot install the best update candidate for package docker-ce-3:19.03.14-3.el7.x86_64
  - package containerd.io-1.4.3-3.1.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)

You're trying to install packages built for EL 7 on EL 8. This isn't going to work, and it's not clear how you managed to do that in the first place. The correct Docker CE repo file gets the correct package versions for your RHEL release, and you should use it instead of whatever custom repo you have used.

This worked for me:

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

And then:

sudo yum update

Go here https://download.docker.com/linux/centos/7/x86_64/nightly/Packages/ find the package dnf is asking for install it manually the run dnf update. it will work with out any issues.