在CentOS 7上安装和使用Docker Compose的方法
https://blog.csdn.net/rubys007/article/details/140481009
sudo curl -L “https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
curl -L “https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64” -o /usr/local/bin/docker-compose
https://github.com/docker/compose/releases
接下来,设置权限以使二进制文件可执行:
sudo chmod +x /usr/local/bin/docker-compose
https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64
然后,通过检查版本来验证安装是否成功:
docker-compose –version