1、下载docker-compose
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
/usr/local/bin
目录下2、赋予目录权限
chmod +x /usr/local/bin/docker-compose
3、查看版本
docker-compose version
显示类似于图片中信息即为成功