docker installation on centos 7

Опубликовано: 14 Октябрь 2024
на канале: Mahendra Shinde
344
0

The most easiest method to Install Docker in CentOS 7

The steps are:
Download following TWO RPM packages:

wget https://download.docker.com/linux/cen...

wget https://download.docker.com/linux/cen...

Now, try "ls" command, you should have TWO rpm files with you:

Install dependencies first:

sudo yum install -y docker-ce-selinux-17.03.0.ce-1.el7.centos.noarch.rpm

Then, the main package:

sudo yum install -y docker-ce-17.03.0.ce-1.el7.centos.x86_64.rpm

Post install, add your current user to docker group
And start docker service:

sudo usermod -aG docker $USER
> Enter your password :

sudo systemctl start docker
sudo systemctl enable docker