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
Stay in touch 📬
❤️ this? Get More!

Receive more such interesting tech articles in 📧 to spice up your skills.

Invalid email address
Give it a try. You can unsubscribe at any time. We promise that we won't spam you!

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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments