1.必须先安装了docker
2.下载compose到只i的那个的位置
curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m`> /usr/local/bin/docker-compose
3.添加可执行权限内
sudo chmod +x /usr/local/bin/docker-compose
4.验证结果
$docker-compose --version
docker-compose version 1.14.0, build 1719ceb