安装扩展源
sudo yum -y install epel-release
安装python-pip模块
sudo yum install python-pip
查看docker-compose版本,提示未找到命令
docker-compose version
通过命令进行安装
cd /usr/local/bin/wget https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-Linux-x86_64
rename docker-compose-Linux-x86_64 docker-compose docker-compose-Linux-x86_64
chmod +x /usr/local/bin/docker-compose