选择对应的版本
sudo curl -SL https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
cd /usr/local/bin/
mv docker-compose-linux-x86_64 docker-compose
chmod +x docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose version