[root@testsvr01~]# yum install yum-utils

[root@testsvr01~]# yum-config-manager   --add-repo   https://download.docker.com/linux/centos/docker-ce.repo
[root@testsvr01~]# yum install docker-ce
Retrieving key from https://download.docker.com/linux/centos/gpg
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060a 61c9 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded


[root@testsvr01~]# systemctl start docker
[root@testsvr01~]# systemctl enable docker

[root@testsvr01~]# curl -SL https://github.com/docker/compose/releases/download/v2.24.7/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
[root@testsvr01~]# chmod +x /usr/local/bin/docker-compose

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0    397      0 --:--:--  0:00:01 --:--:--   397
100 11.2M  100 11.2M    0     0   119k      0  0:01:36  0:01:36 --:--:--  116k
[root@testsvr01~]# chmod +x /usr/local/bin/docker-compose

[root@testsvr01~]# ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

[root@testsvr01~]# docker-compose version
Docker Compose version v2.24.7
docker-py version: 3.6.0
CPython version: 3.6.7
OpenSSL version: OpenSSL 1.1.0f  25 May 2017

Technology