Installation of Docker on CentOS 8
Start by running CentOS updates
- Confirm the download with â
- Wait until the update is finished.
First we have to install the required packages
sudo yum install -y yum-utils device-mapper-persistent-data lvm2Now we have to install the Docker repository
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoNow we are able to install Docker
sudo yum install docker-ce docker-ce-cli containerd.io ânobestDocker has been installed.
sudo systemctl start dockerCheck if Docker is working
sudo docker run hello-worldIf you get the following message, your Docker installation is working:
Hello from Docker! This message shows that your installation appears to be working correctly.