How to install Docker container on the top of your RedHat OS

Sanchita Agrawal
2 min readJun 3, 2021

--

Hello guys😊

Today I’m going to show you how to install Docker container from the scratch in your base OS which is RedHat. You can download by following the official doc from the docker hub also.

To install Docker on Base OS : RHEL8
https://docs.docker.com/engine/install/centos/

Docker makes everything fast. With the use of docker container we can launch any OS from scratch within a sec.

Let us start the installation..👇👇

>>Open your Base OS

>>Login with your root account

>>Search for yum if it is installed in you system by command : rpm -q yum

>>Command: cd /etc/yum.repos.d

>>Create a docker repo file in it (.repo is the extension). In case I’ve given name docker.repo you can give any but extension must be .repo

>>Press i for insert and write :

[docker]

name=docker

baseurl=https://download.docker.com/linux/centos/7/x86_64/stable/

gpgcheck=0

then press esc and :wq!

Press enter

>>Now update with command yum repolist

Now install docker by command yum install docker-ce — nobest

>>Check if its running or not by command :

systemctl start docker

systemctl enable docker

systemctl status docker

Now you have successfully installed docker in your VM. You’re set to go !!

Thankyou !

--

--

Sanchita Agrawal
0 Followers

Computer Science Major || Software Developer@GenusPower