Топ-100
1 min read

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=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