p:: CLI, Docker

Install

sudo su

Install the Compose plugin

https://docs.docker.com/compose/install/linux/#install-using-the-repository

apt update
apt install -y docker-compose-plugin
docker compose version
Docker Compose version v2.15.1

Install the Compose standalone

Compose standalone

Note that Compose standalone uses the -compose syntax instead of the current standard syntax compose.
For example type docker-compose up when using Compose standalone, instead of docker compose up.

curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose