In this lesson, I will show you how to install docker-compose on an ubuntu 20.04 computer. Before installing docker-compose make sure that Docker is installed on the computer.
Run the following command to download docker-compose from the official GitHub repository:
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Set the permission of docker-compose:
sudo chmod +x /usr/local/bin/docker-compose
Check Docker-comose version:
docker-compose --version