Installing Docker Community Edition on Linux Centos 8.2

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=https://download.docker.com/linux/centos/docker-ce.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
#reboot

sudo docker run hello-world

Install Docker Compose

sudo dnf install curl -y

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(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.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments