Docker

Step1: Update

1
sudo yum check-update

Step2: Install the Dependencies

1
sudo yum install -y yum-utils device-mapper-persistent-data lvm2

Step3: Add the Docker Repository to CentOS

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

Step4: Install Docker

1
sudo yum install docker

Step5: Install Docker-compose

1
2
3
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

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