How to install Docker Compose on Ubuntu 22.04?
To install the most updated version of Docker Compose, run the following commands:
mkdir -p ~/.docker/cli-plugins/
At the time of this writing, the most current stable version is 2.14.1
curl -SL https://github.com/docker/compose/releases/download/v2.14.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
Set permissions so that docker compose is executable:
chmod +x ~/.docker/cli-plugins/docker-compose
Check you installation with the following command:
docker compose version
To install the most updated version of Docker Compose, run the following commands:
mkdir -p ~/.docker/cli-plugins/
At the time of this writing, the most current stable version is 2.14.1
curl -SL https://github.com/docker/compose/releases/download/v2.14.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
Set permissions so that docker compose is executable:
chmod +x ~/.docker/cli-plugins/docker-compose
Check you installation with the following command:
docker compose version
To install the most uptaded version of Docker Compose, run the following commands:
mkdir -p ~/.docker/cli-plugins/
At the time of this writing, the most current stable version is 2.14.1
curl -SL https://github.com/docker/compose/releases/download/v2.14.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
Set permissions so that docker compose is executable:
chmod +x ~/.docker/cli-plugins/docker-compose
Check you installation with the following command:
docker compose version
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 12659 | en | https://en.ans.wiki/7107/how-to-install-docker-compose-on-ubuntu-22-04 | 4 |