github访问太慢,可以用daocloud下载
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
![](https://img2020.cnblogs.com/blog/1007916/202112/1007916-20211207152641133-77718253.png)