(01)Install (included with Docker Desktop)
Docker Compose V2 is bundled as the docker compose plugin.
1# Ubuntu / Debian (plugin)2sudo apt-get update3sudo apt-get install -y docker-compose-plugin4 5# Standalone (legacy)6sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose7sudo chmod +x /usr/local/bin/docker-compose