docker-compose负责实现对Docker容器集群的快速编排。
方法1
yum install -y python3-pip
#安装 docker-compose
pip3 install docker-compose
docker-compose version
方法2
curl -L "https://github.com/docker/compose/releases/download/1.28.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
方法3
#个人已经给你分享了包、你需要下载下载
https://share.weiyun.com/ccx96XEf
解压到 这个目录 /usr/local/bin/
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version