In a previous companion post, we talked about how to install Docker in a Linux environment.
After finishing the standard installation, you may be surprised to find that the docker-compose utility is not installed out of the box.
Worry not my friend, this short article has you covered.
Docker-compose Installation
- Download the utility from their official GitHub repository
sudo curl \
-L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose
Note: You can replace 1.24.1 with the latest release version found in the GitHub repo.
- Make the utility executable
sudo chmod +x /usr/local/bin/docker-compose
- Verify installation
docker-compose --version
Done
Easy, right? No? Then check out their full docs.