1、直接参考官方:
Install Compose standalone | Docker Docs
1、安装命令
curl -SL https://github.com/docker/compose/releases/download/v2.24.6/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
2、修改 docker-compose 执行权限
不修改执行权限的话,会提示权限不够
chmod +x docker-compose