下载地址:https://github.com/docker/compose/releases
下载时请注意 CPU 架构
示例:
wget https://github.com/docker/compose/releases/download/v2.28.1/docker-compose-linux-x86_64
/opt/docker/bin
目录为例)cp -rpf docker-compose-linux-x86_64 /opt/docker/bin/docker-compose
chmod +x /opt/docker/bin/docker-compose
ln -s /opt/docker/bin/docker-compose /usr/bin/docker-compose
cp -rpf docker-compose-linux-x86_64 /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
docker-compose version