How to install docker in CentOS 7

We explain here, how to install docker in CentOS 7 using yum command.

Docker is a toolkit that enables developers to build, deploy, run, update, and stop containers using simple commands and work-saving automation through a single API.

What we do here is to install yum-utils , add repository for docker using yum config manager and then install docker using yum. Do not forget to enable docker using systemctl to make sure that it will be active after a reboot.

yum install -y yum-utils
yum-config-manager --add-repo
yum install docker-ce docker-ce-cli
systemctl start docker
systemctl enable docker