Installing Docker Community Edition on Linux Centos 8.2

Run the following script to install docker on Cent OS 8.2

sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
sudo dnf config-manager --add-repo=
dnf list docker-ce
sudo dnf install docker-ce --nobest -y

docker -v

sudo systemctl enable --now docker
sudo systemctl status docker

sudo usermod -aG docker root
id root

#systemctl disable firewalld

sudo docker run hello-world

Install Docker Compose

sudo dnf install curl -y

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose -v

Navule Pavan Kumar Rao

A Full Stack Software Consultant in the day, a Data Scientist in the evening, an Innovative thinker in the nights. Did I forget to say I am a powerful dreamer during the Mid nights? 😉Education: Executive M.Tech in Data Science, Indian Institute of Technology, Hyderabad. B.Tech in Electronics and Communication Engineering.Hobbies: Games, Music, Creative Thinking
Notify of
Inline Feedbacks
View all comments