How To Install Docker Compose On Ubuntu-Update Docker Compose-Uninstall Docker Compose
How To Install Docker Compose on Ubuntu
Docker-Compose:
Docker compose is used to run multi-container docker applications, In docker compose to run these docker multi containers we use docker-compose.yml files. And by using this docker compose we can scale up the selected containers when required.
Prerequisite of docker compose is docker, So docker must be installed on your system.
You can check docker is installed or not by using docker info command or docker --version command
docker --version Docker version 18.09.0, build 4d60db4
Or you can use docker info command
docker info
If you have not installed docker yet you can check the following link.
Install Docker Compose on Ubuntu
install docker compose by using below command
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-uname -s
-uname -m
-o /usr/local/bin/docker-compose
Set The Permissions:
chmod +x /usr/local/bin/docker-compose
Now you can check docker compose version with docker-compose version command
Docker-Compose Version
root@ip-10-0-0-30:~# docker-compose version docker-compose version 1.22.0, build f46880fe docker-py version: 3.4.1 CPython version: 3.6.6 OpenSSL version: OpenSSL 1.1.0f 25 May 2017
now you can see above docker compose version is 1.22.0 now we can see how to update docker compose
Update Docker Compose:
to update docker compose to any version use below command
curl -L https://github.com/docker/compose/releases/download/X/docker-compose-uname -s
-uname -m
-o /usr/local/bin/docker-compose
in the place of X mention your version number and run the command. it will update the docker compose version.
Ex:
curl -L https://github.com/docker/compose/releases/download/1.23.1/docker-compose-uname -s
-uname -m
-o /usr/local/bin/docker-compose
now check the docker composer with docker compose version command
root@ip-10-0-0-30:~# docker-compose version docker-compose version 1.23.1, build b02f1306 docker-py version: 3.5.0 CPython version: 3.6.7 OpenSSL version: OpenSSL 1.1.0f 25 May 2017
so to update the docker compose use any version number in the place of X.
- install docker compose ubuntu
- docker compose install ubuntu 18.04
- ubuntu install docker compose
- install docker compose
- docker compose install ubuntu
- docker compose install ubuntu 16.04