Docker Installation On Rhel 7

2/12/2022by admin
Docker

Docker CE is not officially supported on RHEL but if you're in a pinch, you can get the latest Docker CE installed on it.

Docker Installation On Rhel 7

To install docker on rhel 7/6 you need container selinux version minimum 2.10. So install container selinux greater tha 2.10. Verify container selinux version in your server with below command. Mar 09, 2020 The steps shared here are for the installation of Docker CE on RHEL 7 Linux. Docker is the main dominant container runtime engine used for Development and running of micro-serviced applications in production. There are two editions of Docker available for installation on a RHEL 7 Desktop / Linux machine. Docker Community Edition ( Docker CE).

I’ll admit, I’m not a RedHat expert. I’ve been using Debian based distros since the beginning but recently I was in a position where I had to get Docker CE installed on RedHat 7.2.

It wasn’t my position to question or attempt to persuade anyone into changing. My only task was “get the latest version of Docker CE installed on RHEL 7.x”.

Rhel

If you follow the CentOS instructions for Docker CE , chances are you got the dreaded Requires: container-selinux >= 2.9 error when trying to install CE on RedHat 7.x.

Here’s what I eventually ended up doing which worked:

This just installs a more recent version of container-selinx before installing Docker.

Docker Installation On Rhel 7 System

One thing to note is the long mirror.centos.org command. You’ll want to check the list of extra packages for the latest version of container-selinux. At the time of writing this article it was 2.33.1.

You can check by going to http://mirror.centos.org/centos/7/extras/x86_64/Packages/. Just copy the link address for the latest container-selinux and replace mine from above.

Docker Installation On Rhel 7 Disable

Is it safe in production?

Docker Installation On Rhel 7 Server

That’s for you and your organization to decide. It’s safe in the sense that you are pulling things down from an official CentOS repository. However…

Docker Installation On Rhel 7 Release

Since you’re pulling in a CentOS repository, that will void all support from RHEL which kind of defeats the purpose of being a RHEL subscriber, but sometimes you get handed a problem with no alternative solution.

Comments are closed.