docker, aws, amazon linux 2,

Install Docker Compose on Amazon Linux 2

Apr 25, 2022 · 1 min read · Post a comment

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

Prerequisites

  • Docker
  • Amazon Linux 2
  • sudo privileges

Install Docker Compose on Amazon Linux 2

Step 1. Download the latest Docker Compose version.

wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)

Step 2. Move the Docker Compose file into the system binaries.

sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose

Step 3. Apply the right permissions.

sudo chmod -v +x /usr/local/bin/docker-compose

Step 4. Verify installation.

docker-compose version

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.