docker-compose官方文档:https://docs.docker.com/compose/
1、运行此命令以下载Docker Compose的当前稳定版本:
curl -L "https://github.com/docker/compose/releases/download/1.24.0/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 --version