Installation of Docker fails on CentOS 8 with Error – package is excluded

I recently came with a strange issue while installing Docker on CentOS 8. When I tried to install Docker on my system I got the same error every time.

Useful Articles:

In this article, we will help you to resolve the Docker fails issue.

Installation Command Used

I tried installing Docker in CentOS 8 and got an error. I used mention command.

# yum install docker-ce docker-ce-cli

Error Received:

 Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires >= 1.2.2-3, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package is excluded
  - package is excluded
  - package is excluded
  - package is excluded
  - package is excluded
  - package is excluded
  - package is excluded
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Step Follow to Resolve the Issue

To resolve this issue first, we need to manually install the package.

Method 1:
Use the following command to install the package manually.

# wget
# yum localinstall

Method 2:
You can directly install the package without downloading it.

# yum install -y

Install Docker:

Now you can install Docker on CentOS 8 without an issue.

# yum install docker-ce docker-ce-cli


Enjoy it!

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.