访问网站https://docs.docker.com/compose/install/standalone/


centos7.9安装docker-compose_linux

 

下载

curl -SL https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose


赋予执行权限

chmod +x /usr/local/bin/docker-compose


建立软链接

ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose