The yum command can be used to install Docker on Linux CentOS.
yum install docker
By default, the Docker binaries will be located below /etc/docker.
The systemctl or service command can be used to start and enable docker.
Use the docker run command to ensure that the installation is working properly.
docker run hello-world
The following output should be displayed.
Hello from Docker. This message shows that your installation appears to be working correctly.