官方安装教程 Install Docker Compose | Docker Documentation
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
执行输出:
2、对二进制文件授予可执行权限
chmod +x /usr/local/bin/docker-compose
3、创建软链接
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
4、测试是否安装成功
docker-compose -v
执行输出: