Docker Compose is a Docker tool that is very useful . It allows users to launch, execute, communicate, and close containers with a single coordinated command. you can follow these steps to install docker compose.
![Docker Compose button.jpg](https://quintagroup.com/cms/technology/Images/docker-compose-button.jpg/@@images/image.jpeg)
Step 1: Upgrade and Update
Start by updating and upgrade the system to ensure all local packages and programs are up to date
$ sudo apt update $ sudo apt upgrade
Step 2: Installing curl
Try typing curl
command and enter. If you do not have cURL installed in your ubuntu, install it by typing the following:
$ sudo apt install curl
Step 3: Download the Latest Docker Version
There is no installation script once the package is locally available, it is automatically installed. Use the following command and wait for it to complete:
sudo curl -L “https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
Step 4: Change File Permission
Change file permission by typing the following:
$ sudo chmod +x /usr/local/bin/docker-compose
You can view the docker compose version by:
$ sudo docker–compose --version
If it shows you the docker compose version, you successfully installed it in your ubuntu.