Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in DevOps and Agile by (29.3k points)

Is it possible to install DockerCE in the specific version 17.03 on RHEL7?

There is information here:

https://docs.docker.com/engine/installation/linux/rhel/#install-using-the-repository about the installing Docker on RHEL but there is no version info.

and here with Docker 17.03 but only in Docker EE, not Docker CE

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/7.0_Release_Notes/sect-Red_Hat_Enterprise_Linux-7.0_Release_Notes-Linux_Containers_with_Docker_Format-Using_Docker.html but they talk about Docker v 0.12

1 Answer

0 votes
by (50.2k points)

The first step is to Set up the Docker CE repository on RHEL:

sudo yum install -y yum-utils

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

sudo yum makecache fast

Install the latest version of Docker CE on RHEL:

sudo yum -y install docker-ce

Alternatively, you can specify a specific version of Docker CE:

sudo yum -y install docker-ce-<version>-<release>

Start Docker:

sudo systemctl start docker

Test your Docker CE installation:

use mock to build the package from the sources on git.centos.org

sudo docker run hello-world

But there is a need to check for the dependencies for that please refer my answer on https://intellipaat.com/community/8722/docker-ce-on-rhel-requires-container-selinux-2-9 that will help you if you got any package error.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 15, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer
asked Jan 24, 2021 in Linux by dev_sk2311 (45k points)
0 votes
1 answer

Browse Categories

...