podman, aws, amazon linux 2,

Install Podman Compose on Amazon Linux 2

Jan 07, 2022 · 1 min read · Post a comment

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m going to cover all of them. It’s easy and simple but to avoid some podman-compose errors please make sure that you have satisfied the prerequisites.

Prerequisites

  • Amazon Linux 2
  • Podman
  • Python3 and pip3

Install podman-compose using PyPI

To install the latest stable podman-compose version through pip3, run:

pip3 install podman-compose

Install podman-compose from GitHub

Install the latest development version from GitHub.

pip3 install https://github.com/containers/podman-compose/archive/devel.tar.gz

Install podman-compose using curl

Install it using curl.

curl -o /usr/local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/devel/podman_compose.py
chmod +x /usr/local/bin/podman-compose

Verify installation

To verify the installation, execute:

podman-compose --version

or

podman-compose --help

Conclusion

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