followed the link to install the docker-compose link

Basically, thee are only two steps as below:

Copysudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

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

docker-compose version
Answer from Santosh Garole on Stack Overflow
🌐
GitHub
gist.github.com › npearce › 6f3c7826c7499587f00957fee62f8ee9
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command · GitHub
sudo amazon-linux-extras install docker sudo service docker start sudo usermod -a -G docker ec2-user ... Because you always need it.... ... Reboot to verify it all loads fine on its own.
Discussions

EC2 with docker services
Hello, I have some questions to ... better Amazon Linux or Ubuntu? 2- What would an initialization script be like, that is, user data to make a launch template with docker for both AMIs? 3- To keep the volumes persistent if the services go down or an error occurs, how is a reference from a docker-compose to a volume or how does this part work? 4- In general, in an EC2 production environment it would be practically the same as simulating a local environment, that is, installing docker and ... More on repost.aws
🌐 repost.aws
1
0
September 9, 2024
How do I install docker version 27.3.1 on Amazon Linux 2023?
--- - name: Install Docker components from RPM on Amazon Linux 2023 hosts: bamboo become: yes vars: architecture: "el9.x86_64" buildx_version: "0.10.2-1" compose_version: "2.6.0-3" containerd_version: "1.7.23-3.1" docker_rpm_base_url: "https://download.docker.com/linux/centos/9/x86_64/stab... More on repost.aws
🌐 repost.aws
5
0
November 27, 2024
Is it possible to install Docker Compose in Amazon Linux 2023 using package manager?
It’s an uphill battle. I think they want to encourage use of ECS. Probably they consider running docker compose on a vm to be anti pattern, and want that kind of workload to be moved to their managed service. Docker on AL2023 for me is more for running services I would say than running stacks. I had an app I regularly run on AL2023 for work. I manage the docker components with ansible since my go to compose file doesn’t work More on reddit.com
🌐 r/docker
10
2
January 25, 2026
Docker installation gives an error on Amazon Linux 2 when following the official documentation. Any ideas how to fix this?
Why not try the provided script instead? curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh Does this fail too? Or download the .rpm https://download.docker.com/linux/centos/ and install that? https://download.docker.com/linux/centos/2/x86_64/stable/repodata/repomd.xml : For whatever reason the repo is trying to access the folder for version "2", which doesnt exist as you can see here . [docker-ce-stable] name=Docker CE Stable - $basearch baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/stable enabled=1 gpgcheck=1 gpgkey=https://download.docker.com/linux/centos/gpg Probably because your OS is reporting version "2" as the OS version, but the Docker repo expects a version number for CentOS such as "9" and "2" is simply not supported at all. Maybe you can manually add the correct URL to your package manager. Look at documentation for CentOS/AL2. A 5 second Google search gives this for example: https://www.cyberciti.biz/faq/how-to-install-docker-on-amazon-linux-2/ More on reddit.com
🌐 r/docker
7
0
October 12, 2024
🌐
Reddit
reddit.com › r/docker › is it possible to install docker compose in amazon linux 2023 using package manager?
r/docker on Reddit: Is it possible to install Docker Compose in Amazon Linux 2023 using package manager?
January 25, 2026 -

I looked this up but I can't find a way to install it using the package manager 'yum'.as indicated in the installation instructions here - "https://docs.docker.com/compose/install/linux/"

It just says that there is no match for 'docker-compose'plugin'

This is my preferred way to install it if possible. Maybe I have to add some repository so it can locate it? but I don't know how.

EDIT: to be more specific, I'm using docker that is installed part of Amazon Linux 2023 on a Lightsail instance, I did not install it myself - package version (docker-25.0.14-1.amzn2023.0.1.x86_64). Also there is no docker compose plug in that came with it as I checked that already.

🌐
Medium
medium.com › @geeekfa › docker-and-docker-compose-on-aws-linux-2-9e90f79502db
Docker and Docker Compose on AWS Linux 2 | by GeeekFa | Medium
December 13, 2023 - sudo yum install -y amazon-linux-extras sudo amazon-linux-extras install docker sudo systemctl start docker sudo usermod -a -G docker $USER sudo systemctl enable docker ... Close and reopen the terminal to run the following command.
🌐
Chris Tierney
christierney.com › 2025 › 07 › 17 › installing-docker-w-compose-on-amazon-linux-2023
Installing Docker w/ Compose on Amazon Linux 2023 | Chris Tierney
March 9, 2026 - #ensure all the installed packages on our system are up to date sudo dnf update #use the default Amazon repository to download and install the Docker sudo dnf install docker #start Docker sudo systemctl start docker #start automatically with ...
🌐
Docker Docs
docs.docker.com › manuals › docker compose › install › install the docker compose plugin
Install the Docker Compose plugin | Docker Docs
May 28, 2026 - Step-by-step instructions for installing the Docker Compose plugin on Linux using a package repository or manual method.
🌐
nixCraft
cyberciti.biz › nixcraft › howto › amazon cloud computing › how to install docker on amazon linux 2
How to install Docker on Amazon Linux 2 - nixCraft
October 8, 2024 - This page explains how to install Docker and docker-compose on Amazon Linux 2 to containerized applications on AMI on EC2/Lightsail cloud.
Find elsewhere
🌐
OneUptime
oneuptime.com › home › blog › how to install docker on amazon linux 2023
How to Install Docker on Amazon Linux 2023
February 8, 2026 - # Install the DNF repository management plugin sudo dnf install -y dnf-plugins-core # Add Docker's official CentOS repository sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo # Install Docker CE (may ...
🌐
Saturn Cloud
saturncloud.io › blog › how-to-install-dockercompose-on-amazon-ec2-linux-2-and-run-a-9kb-dockercompose-file
How to Install Docker-Compose on Amazon EC2 Linux 2 and Run a hello-world Docker-Compose File | Saturn Cloud Blog
May 1, 2026 - In this tutorial, we'll walk through the steps of installing Docker-Compose on an Amazon EC2 Linux 2 instance and running a hello-world Docker-Compose file. Docker-Compose is a tool for defining and managing multi-container Docker applications. It uses YAML files to configure the application's ...
🌐
GitHub
gist.github.com › thimslugga › 36019e15b2a47a48c495b661d18faa6d
Setup Docker on Amazon Linux 2023 · GitHub
To install the docker compose plugin for all users: sudo mkdir -p /usr/local/lib/docker/cli-plugins sudo curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-"$(uname -m)" \ -o /usr/local/lib/docker/cli-p...
🌐
Floating Cloud
floatingcloud.io › home › how to install docker and compose on amazon linux 2
How to install Docker and Compose on Amazon Linux 2 - Floating Cloud
March 28, 2023 - Log in to your Amazon Linux 2 instance. Open a terminal and run the following command to update your system: ... Install the required packages: Docker, containerd, git, and screen, by running the following command: ... wget https://github.c...
🌐
Medium
medium.com › @fredmanre › how-to-configure-docker-docker-compose-in-aws-ec2-amazon-linux-2023-ami-ab4d10b2bcdc
How To configure Docker & Docker-Compose in AWS EC2 [Amazon Linux 2023 AMI] (Updated September, 2025) | by Freddy Manrique | Medium
September 26, 2025 - $ sudo yum install docker-compose No match for argument: docker-compose Error: Unable to find a match: docker-compose · For that reason, the best way to do it is with the following recipe: $-> sudo yum install docker -y $-> sudo systemctl start ...
🌐
DevCoops
devcoops.com › install-docker-compose-on-amazon-linux-2
Install Docker Compose on Amazon Linux 2 | DevCoops
April 25, 2022 - 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.
🌐
YouTube
youtube.com › watch
How to Install Docker and Docker Compose on Amazon Linux 2023 - YouTube
How to Install Docker and Docker Compose on Amazon Linux 2023https://awswithatiq.com/how-to-install-docker-and-docker-compose-on-amazon-linux-2023/Help the c...
Published   February 22, 2026
🌐
AWS re:Post
repost.aws › questions › QUcH0NvVJ_TQ282DssLg2AfQ › ec2-with-docker-services
EC2 with docker services | AWS re:Post
September 9, 2024 - #!/bin/bash # Update and install Docker sudo yum update -y sudo amazon-linux-extras install docker -y # Start Docker service sudo service docker start sudo usermod -a -G docker ec2-user # Install Docker Compose sudo curl -L "https://github....
🌐
GitHub
gist.github.com › basaran › c5d2829b05b8f0ca64e59f41104f488f
Setup Docker and docker-compose on Amazon Linux 2023 · GitHub
sudo dnf install --allowerasing -y docker \ containerd \ runc \ container-selinux \ cni-plugins \ oci-add-hooks \ amazon-ecr-credential-helper \ udica ... # Install for all users sudo mkdir -p /usr/local/lib/docker/cli-plugins sudo curl -sL ...
🌐
LinuxVox
linuxvox.com › blog › install-docker-compose-in-amazon-linux-2023
Installing Docker Compose on Amazon Linux 2023 — linuxvox.com
By using Docker Compose, you can manage complex application setups with multiple containers using a single YAML file. In this blog post, we will explore how to install Docker Compose on Amazon Linux 2023, understand its usage, common practices, and best practices.
🌐
Awswithatiq
awswithatiq.com › how-to-install-docker-and-docker-compose-on-amazon-linux-2023
How to Install Docker and Docker Compose on Amazon Linux 2023 – AWS with Atiq
December 31, 2025 - sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose ... Verify the installation by running the command.
Top answer
1 of 5
4
Here is what has worked for me: ``` sudo dnf update -y # Remove old version sudo dnf remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine # Install dnf plugin sudo dnf -y install dnf-plugins-core # Add CentOS repository sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo # Adjust release server version in the path as it will not match with Amazon Linux 2023 sudo sed -i 's/$releasever/9/g' /etc/yum.repos.d/docker-ce.repo # Install as usual sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # Enable the docker service sudo systemctl enable --now docker ```
2 of 5
1
`My EC2 VM currently has Docker version 25.0.5, build 5dc9bcc installed, but this version has a security flaw that has been patched in versions 27.1.1 and above.` Are you referring to CVE-2024-41110? Affected versions include `<= v25.0.5` and `<= v27.1.0` You can refer to Amazon Linux Security Center ALAS-2024-674 which mentions `AWS is aware of CVE-2024-41110, an issue affecting the Moby open source project, packaged in Amazon Linux as "docker". Docker is a component of several open source container management systems.` `Updated docker packages addressing the issue are available for Amazon Linux 2 (docker-20.10.25-1.amzn2.0.5 and docker-25.0.6-1.amzn2.0.1) and for Amazon Linux 2023 (docker-25.0.6-1amzn2023.0.1). AWS recommends that customers using docker upgrade to these or later versions. (CVE-2024-41110)` On my AL2023, docker 25.0.6 is installed ``` $ cat /etc/os-release | grep PRETTY PRETTY_NAME="Amazon Linux 2023.6.20241121" $ dnf info docker Installed Packages Name : docker Version : 25.0.6 Release : 1.amzn2023.0.2 Architecture : aarch64 Size : 150 M Source : docker-25.0.6-1.amzn2023.0.2.src.rpm Repository : @System From repo : amazonlinux Summary : Automates deployment of containerized applications URL : http://www.docker.com License : ASL 2.0 and MIT and BSD and MPLv2.0 and WTFPL Description : Docker is an open-source engine that automates the deployment of any : application as a lightweight, portable, self-sufficient container that will : run virtually anywhere. : : Docker containers can encapsulate any payload, and will run consistently on : and between virtually any server. The same container that a developer builds : and tests on a laptop will run at scale, in production*, on VMs, bare-metal : servers, OpenStack clusters, public instances, or combinations of the above. ```