1. Why Docker Compose

2. Prerequisites

Install the Docker – ce

3. Download the latest version and install it

Download the Docker Compose binary

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Copy the code

Add executable permissions

sudo chmod +x /usr/local/bin/docker-compose
Copy the code

Test the installation

docker-compose --version
Copy the code

4. Install with apt-get

Prerequisite: Docker installed in repository mode.

sudo apt-get install -y docker-compose
Copy the code

The version is older and faster.