方法一:
根据https://github.com/docker/compose/releases下说明进行安装
如:
# curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
查看版本信息
# docker-compose --version
此方法会经常因为网络的原因而无法安装
方法二:
1、安装python-pip
# yum -y install epel-release
# yum -y install python-pip
2、安装docker-compose
# pip install docker-compose
待安装完成后,执行查询版本的命令,即可安装docker-compose
# docker-compose version