安装docker-compose
安装docker-compose文件
curl -L https://github.com/docker/compose/releases/download/2.26.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
也可以手动下载
下载后可用winscp等工具上传,可手动将docker-compose-linux-x86_64改为docker-compose
将文件复制到/usr/local/bin环境变量下面
mv docker-compose /usr/local/bin
授权
chmod +x /usr/local/bin/docker-compose
查看版本
docker-compose -v