docker-compose: 未找到命令

docker-compose: 未找到命令

安装docker-compose

1.从github上下载docker-compose二进制文件安装

``sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose`` 

若是github访问太慢,可以用daocloud下载,下载文件到/usr/local/bin/docker-compose文件夹下:

``sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose`` 

添加可执行权限

`sudo chmod +x /usr/local/bin/docker-compose` 

测试安装结果

`docker-compose --version`