Installing Docker Community Edition on Linux Centos 8.2

Table Of Contents

In this tutorial we will see the script that will help 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

I am a Full Stack Software Engineer with the Product Development experience in Banking, Finance, Corporate Tax and Automobile domains. I use SOLID Programming Principles and Design Patterns and Architect Software Solutions that scale using C#, .NET, Python, PHP and TDD. I am an expert in deployment of the Software Applications to Cloud Platforms such as Azure, GCP and non cloud On-Premise Infrastructures using shell scripts that become a part of CI/CD.I pursued Executive M.Tech in Data Science from IIT, Hyderabad (Indian Institute of Technology, Hyderabad) and hold B.Tech in Electonics and Communications Engineering from Vaagdevi Institute of Technology & Science.
Notify of
Inline Feedbacks
View all comments