Installing Docker CE on Centos 8

Add the docker repositories:

sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Install containerd.io:

sudo dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm

Installer Docker CE:

sudo dnf install docker-ce

Disable firewalld:

sudo systemctl disable firewalld

Enable docker:

sudo systemctl enable --now docker

Add user to docker group:

sudo usermod -aG docker $USER

Install docker compose:

curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

Make executable:

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