Here is a bash script to install latest docker compose plugin for all users on amazon linux 2:

sudo mkdir -p /usr/local/lib/docker/cli-plugins/
sudo curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
Answer from gennadi.eckstein on Stack Overflow
🌐
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.
Discussions

How to install docker-compose v2 on Linux
Description I'm trying to allow DDEV to use docker-compose v2 and don't have the resources for a whole set of tests on every macOS variant... but I thought it would be nice to run all the t... More on github.com
🌐 github.com
46
August 12, 2021
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
Troubleshooting Docker-Compose Installation on CentOS 7: libz.so.1 Error
Hello everyone, I’m facing an issue with setting up Docker on CentOS 7 and need some advice. Here are the steps I followed: Docker Community Edition Installation Added Docker CE repo: sudo yum-config-manager --add-re… More on forums.docker.com
🌐 forums.docker.com
7
0
November 30, 2023
Adding yum install inside docker-compose yaml file
Hi All, Please help how can I add “yum install -y dejavu-sans-fonts fontconfig” in docker-compose.yml I was able to add it in Dockerfile but my manager doesn’t want to add it inside Dockefile. tried as well to map fonts like - /usr/share/fonts:/usr/share/fonts but upon testing by dev ... More on forums.docker.com
🌐 forums.docker.com
5
0
April 19, 2023
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-and-use-docker-compose-on-centos-7
How To Install and Use Docker Compose on CentOS 7 | DigitalOcean
February 13, 2026 - I needed also to install the python-devel package on my CentOS. ... If you’re not logging with ‘root’ user, this will fail. ... Take me 30’ to realize this. ... docker-compose up ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?
🌐
AWS Builder Center
builder.aws.com › content › 2pvfj4kkufvnIwWggmo4HE1pHWk › installing-docker-compose
Installing Docker Compose
Connect with builders who understand your journey. Share solutions, influence AWS product development, and access useful content that accelerates your growth. Your community starts here.
🌐
Docker Docs
docs.docker.com › manuals › docker compose
Docker Compose | Docker Docs
May 28, 2026 - Learn how to use Docker Compose to define and run multi-container applications with this detailed introduction to the tool.
🌐
Docker Docs
docs.docker.com › manuals › docker compose › overview of installing docker compose
Overview of installing Docker Compose | Docker Docs
May 28, 2026 - Learn how to install Docker Compose. Compose is available natively on Docker Desktop, as a Docker Engine plugin, and as a standalone tool.
Find elsewhere
🌐
GitHub
github.com › docker › compose › issues › 8575
How to install docker-compose v2 on Linux · Issue #8575 · docker/compose
August 12, 2021 - I followed the linux instructions in https://github.com/docker/compose-cli/blob/main/INSTALL.md but that doesn't do anything I can detect (curl -L https://raw.githubusercontent.com/docker/compose-cli/main/scripts/install/install_linux.sh | sh) (and doesn't enable the docker compose command either).
Author   docker
🌐
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.

🌐
Docker Community
forums.docker.com › docker engine › compose
Troubleshooting Docker-Compose Installation on CentOS 7: libz.so.1 Error - Compose - Docker Community Forums
November 30, 2023 - Here are the steps I followed: Docker Community Edition Installation Added Docker CE repo: sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Installed Docker CE: sudo yum install docker-ce Started Docker: ...
🌐
Docker Community
forums.docker.com › docker hub
Adding yum install inside docker-compose yaml file - Docker Hub - Docker Community Forums
April 19, 2023 - Hi All, Please help how can I add “yum install -y dejavu-sans-fonts fontconfig” in docker-compose.yml I was able to add it in Dockerfile but my manager doesn’t want to add it inside Dockefile. tried as well to map fon…
🌐
Docker Docs
docs.docker.com › manuals › docker engine › install › install docker engine on centos
Install Docker Engine on CentOS | Docker Docs
October 9, 2025 - Learn how to install Docker Engine on CentOS. These instructions cover the different installation methods, how to uninstall, and next steps.
🌐
Hostinger
hostinger.com › home › tutorials › how to install docker on centos 9 stream + docker compose
How to Install Docker on CentOS 9
May 26, 2025 - Then, we have to install a series of packages prior to installing Docker. We need to be the root user and run the following line in the command line: yum install -y yum-utils device-mapper-persistent-data lvm2
🌐
GitHub
gist.github.com › barbietunnie › b6a222df4e68c5b7ad23b8e8763cd7fa
How To Install Docker and Docker Compose on CentOS 7 · GitHub
How To Install Docker and Docker Compose on CentOS 7 · Raw · install-docker-centos-7.md · $ sudo yum check-update $ curl -fsSL https://get.docker.com/ | sh $ sudo systemctl start docker $ sudo systemctl status docker # Make sure it starts on every reboot $ sudo systemctl enable docker ·
🌐
Alibaba Cloud Community
alibabacloud.com › blog › how-to-install-docker-ce-and-docker-compose-on-centos-8_595741
How to Install Docker CE and Docker-Compose on CentOS 8 - Alibaba Cloud Community
January 15, 2020 - Docker CE is available to download from Docker's Official Website However, we can also install it from Docker CE yum repository.
🌐
Unihost
unihost.com › help › how to install docker compose on centos 8
How to install Docker Compose on CentOS 8 - Unihost.FAQ
September 13, 2023 - Install the curl command. ... Download the latest version of Docker Compose.
🌐
CloudSigma
blog.cloudsigma.com › installing-docker-compose-on-centos-7
Installing Docker Compose on CentOS 7 — CloudSigma
To get the most recent version of Docker Compose, follow the instructions in the Docker documentation and download the binaries from Docker’s GitHub repository. Check that you have the latest version of the software by running the command below: To make the binary run, set the permissions below: Next, look up your version to check if the installation was successful: