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 syntaxcompose
.
For example typedocker-compose up
when using Compose standalone, instead ofdocker 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