This article is strictly focused on installing docker-compose
on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.
Prerequisites
- Docker
- Ubuntu 21.10
- sudo privileges
Install Docker Compose on Ubuntu 21.10
Step 1. Download the current stable version of Docker Compose.
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 2. Add the right executable permissions.
sudo chmod +x /usr/local/bin/docker-compose
Step 3. Create a symbolic link to /usr/bin
path as well.
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Step 4. Check the version.
docker-compose --version
Output:
docker-compose version 1.29.2
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.