Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. Firstly, you need to make sure that you have installed Docker on your Rocky Linux machine.
- Rocky Linux 8
Install Compose on Rocky Linux 8
Step 1. If you don’t have
curl command installed on your machine run the next command to download the current stable release 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
If you need to install a different version just change the number
1.29.2 from the url above. You can find the versions at Compose repository release page
Step 2. Once the download is finished, add execute permissions to the binary.
sudo chmod +x /usr/local/bin/docker-compose
Step 3. Create a symbolic link to
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Step 4. Verify the installation.
docker-compose version 1.29.2, build 5becea4c
Uninstall Compose on Rocky Linux 8
Step 1. If you decide to uninstall Docker Compose, execute:
sudo rm /usr/local/bin/docker-compose
Installing Docker Compose on Rocky Linux 8 is an easy procedure and if you followed the steps above you should have successfully installed Compose on
Rocky Linux 8. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.