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 Answer from Hour-Inner on reddit.com
🌐
Loud-technology
loud-technology.com › insight › installer-docker-sur-amazon-linux
Installer Docker et Docker Compose sur Amazon Linux 2 & 2023
July 5, 2024 - Guide étape par étape pour installer et configurer rapidement Docker (+ compose) sur les distributions Amazon Linux 2 et 2023.
🌐
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.

Discussions

Installing docker-compose on Amazon EC2 Linux 2. 9kb docker-compose file - Stack Overflow
Does this install compose v2? After doing this, docker compose says "compose is not a docker command". 2023-05-12T14:53:16.98Z+00:00 ... Save this answer. ... Show activity on this post. You can start from the scratch on Amazon Linux ec2 instance for installing Docker by following the step: More on stackoverflow.com
🌐 stackoverflow.com
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 fails on amazon linux 2 when following the official installation method
I know it doesn’t really answer your question, but AL2 goes end of life next year, is there a reason you would not use AL2023? More on reddit.com
🌐 r/aws
19
5
October 12, 2024
🌐
GitHub
gist.github.com › thimslugga › 36019e15b2a47a48c495b661d18faa6d
Setup Docker on Amazon Linux 2023 · GitHub
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-plugins/docker-compose # Set ownership to root and make executable test -f /usr/local/lib/docker/cli-plugins/docker-compose \ && sudo chown root:root /usr/local/lib/docker/cli-plugins/docker-compose test -f /usr/local/lib/docker/cli-plugins/docker-compose \ && sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
🌐
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 system boot sudo systemctl enable docker #confirm the service is running sudo systemctl status docker #add our current user to the Docker group sudo usermod -aG docker $USER #apply the changes we have done to Docker Group newgrp docker #create plugin directory for all users sudo mkdir -p /usr/local/lib/docker/cli-plugins #download current version of docker
🌐
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 mkdir -p /usr/libexec/docker/cli-plugins/ $-> sudo curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m) -o /usr/libexec/docker/cli-plugins/docker-compose $-> sudo chmod +x /usr/libexec/docker/cli-plugins/docker-compose # finally $-> docker compose version
🌐
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 conflict with the AL2023 package) sudo dnf install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin · Check that the security group allows outbound HTTPS (port 443). Also verify the instance has a route to the internet (either a public IP with an internet gateway, or a NAT gateway for private subnets). EBS volumes on EC2 can be small by default. Monitor and clean up regularly. # Check Docker disk usage docker system df # Remove unused images, containers, and networks docker system prune -af · Amazon Linux 2023 makes Docker installation simple with a single dnf install command.
Find elsewhere
🌐
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 https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m) \ -o /usr/local/lib/docker/cli-plugins/docker-compose # Set ownership to root and make executable sudo chown root:root /usr/local/lib/docker/cli-plugins/docker-compose sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
🌐
LinuxVox
linuxvox.com › blog › install-docker-compose-in-amazon-linux-2023
Installing Docker Compose on Amazon Linux 2023 — linuxvox.com
Docker Compose, on the other hand, is a tool for defining and running multi-container Docker applications. By using Docker Compose, you can manage complex application setups with multiple containers using a single YAML file.
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 186
[Package Request] - docker-compose-plugin · Issue #186 · amazonlinux/amazon-linux-2023
Is this package available in Amazon Linux 2? No. The docker compose plugin is a plugin for docker to define and run multi-container Docker applications.
Author   amazonlinux
🌐
GitHub
gist.github.com › bradyemerson › 18e5509e31155df0be9fd25a43ea8b76
Amazon Linux 2023 - Install docker and docker-compose · GitHub
sudo curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose #DOCKER_CONFIG=/usr/local/lib/docker #DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} #mkdir -p $DOCKER_CONFIG/cli-plugins #chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose # verify docker-compose --version
🌐
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 - SSH access to the server. Update your Linux with the latest repository updates by running the command below. ... The advantage of AL2023 is that it includes Docker in its default repository, unlike some other distributions, where you need to add a repository first.
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. ```
🌐
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 - ·Dec 13, 2023 · -- Listen · Share · This tutorial guides you through deploying a Python Flask API using Docker Compose on an AWS EC2 instance. The process includes building and pushing a multi-architecture Docker image to Docker Hub, launching an AWS EC2 instance with Amazon Linux 2, setting up Docker and Docker Compose, and modifying configurations for seamless deployment...
🌐
LinuxVox
linuxvox.com › blog › install-docker-on-amazon-linux-2023
Installing Docker on Amazon Linux 2023 — linuxvox.com
Use Docker Compose for Multi-Container Applications: Docker Compose allows you to define and run multi-container applications with a single command. Installing and using Docker on Amazon Linux 2023 is a straightforward process that can greatly ...
🌐
GitHub
gist.github.com › npearce › 6f3c7826c7499587f00957fee62f8ee9
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command · GitHub
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose · two years later, my savior · Copy link · Copy Markdown · If you are getting buildx error on Amazon Linux 2023, following helps · e.g. error compose build requires buildx 0.17 or later ·
🌐
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 - Docker-Compose is a tool for defining and managing multi-container Docker applications. It uses YAML files to configure the application's services and allows you to manage the entire lifecycle of your application.
🌐
Keeper
docs.keeper.io › keeperpam › privileged-access-manager › references › installing-docker-on-linux
Installing Docker on Linux | KeeperPAM and Secrets Manager | Keeper Documentation Portal
December 13, 2025 - Amazon Linux 2023 · Debian · Ubuntu · RedHat 10 in AWS · AskCopy · sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo sed -i 's|\$releasever|9|g' /etc/yum.repos.d/docker-ce.repo sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo systemctl enable --now docker sudo usermod -aG docker $USER newgrp docker sudo service docker start sudo chkconfig docker on # Verify docker --version docker compose version ·