Docker Compose is a tool / plugin that works with Docker Engine.
Make sure docker engine is installed. You can follow the steps here.
- Install the package:
sudo apt update
sudo apt install docker-compose-plugin
- Verfify the installation
docker compose version
Docker Desktop includes Docker Compose along with Docker Engine and Docker CLI which are Compose prerequisites. If you have already installed Docker Desktop, you can check which version of Compose you have by selecting About Docker Desktop from the Docker menu.