下载文件

sudo wget -c -t 0 https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose

添加执行权限

sudo chmod a+rx /usr/local/bin/docker-compose

验证是否安装成功

docker-compose -v

卸载

sudo rm /usr/local/bin/docker-compose