Introduction
Docker is an open-source platform that enables developers to build, deploy, run, update and manage containers and uses OS-level virtualization to deliver software in packages called containers. Docker is a tool used to automate the deployment of applications in lightweight containers so that applications can work efficiently in different environments. The software that hosts the containers is called Docker Engine.
Installing Docker with the yum command
- Update the package index.
# sudo yum update
-
Install the Dependencies.
# sudo yum install -y yum-utils device-mapper-persistent-data lvm2
-
Add the Docker Repository.
# sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
-
Installing the docker.
# sudo yum install docker
-
Starting of docker service.
# sudo systemctl start docker
-
Enabling the docker.
# sudo systemctl enable docker
- Verifying the docker status.
# sudo systemctl status docker
Output