vigneshr35
vigneshr35

Reputation: 117

Issue with Docker installation on Linux

I am trying to install Docker on RHEL whose version details are shown below

enter image description here

I have downloaded the rpm docker-ce-20.10.2-3.el7.x86_64.rpm from here. And I run the following install command

sudo yum install /home/projuser/usr/share/Docker/docker-ce-20.10.2-3.el7.x86_64.rpm

Error comes up suggesting that docker-ce-rootless-extras is required.

Error: Package: 3:docker-ce-20.10.2-3.el7.x86_64 (/docker-ce-20.10.2-3.el7.x86_64)
Requires: docker-ce-rootless-extras

Here is the full screenshot of error

enter image description here

As per the message I try to install docker-ce-rootless-extras-20.10.2-3.el7.x86_64.rpm that I downloaded from here using command shown below

sudo yum install /home/projuser/usr/share/Docker/docker-ce-rootless-extras-20.10.2-3.el7.x86_64.rpm

I get an error that suggests that docker-ce is required

Error: Package: docker-ce-rootless-extras-20.10.2-3.el7.x86_64 (/docker-ce-rootless-extras-20.10.2-3.el7.x86_64)
Requires: docker-ce

Here is the complete screenshot

enter image description here

So I am not sure how to resolve this dependency as docker-ce and docker-ce-rootless-extras are both not getting installed with dependency on each other. Please let me know if you need any other details.

Please help resolve this

Upvotes: 3

Views: 5422

Answers (3)

Kerem Atasen
Kerem Atasen

Reputation: 89

Since you pull packages from a registry and installing them from scratch this order fits well for Red Hat Enterprise Linux Server release 7.9 (Maipo).

> yum install containerd.io-1.6.33-3.1.el7.x86_64.rpm
> yum install docker-ce-cli-26.1.4-1.el7.x86_64.rpm docker-compose-plugin-2.6.0-3.el7.x86_64.rpm
> yum install docker-ce-26.1.4-1.el7.x86_64.rpm docker-ce-rootless-extras-26.1.4-1.el7.x86_64.rpm
> yum install docker-scan-plugin-0.9.0-3.el7.x86_64.rpm

Upvotes: 0

Nattanon Piamwilaikul
Nattanon Piamwilaikul

Reputation: 91

Hope it not too late. You have to install both packages at the same time.

rpm -i docker-ce-XXXXX docker-ce-rootless-extras-XXXXX

This command is working for me.

Upvotes: 8

Nirmal_Balachandran
Nirmal_Balachandran

Reputation: 1

you need to install the centos package on RHEL. installing the correct package resolved the same issue I was facing. check out this Link

Upvotes: 0

Related Questions