//You can install latest version
sudo apt-get update
sudo apt-get install docker-compose-plugin
//or you can install other versions
sudo apt-get install docker-compose-plugin=<VERSION_STRING>
//Install Manually
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.11.2/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
//Test
docker compose version