1、命令安装
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
2、给docker-compose文件添加执行权限
sudo chmod +x /usr/local/bin/docker-compose
3、测试安装:
docker-compose --version