podman, ubuntu,

Install Podman Compose on Ubuntu 20.04

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

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and pip3 installed from the prerequisites section.

Prerequisites

  • Podman
  • Python3 and pip3
  • sudo privileges

Install podman-compose using PyPI on Ubuntu 20.04

Step 1. Install Python with pip.

sudo apt update
sudo apt install python3-pip

Step 2. Install the latest stable podman-compose version using pip3.

pip3 install podman-compose

Install podman-compose from GitHub on Ubuntu 20.04

To install the latest dev version from GitHub, run:

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

Install podman-compose using curl on Ubuntu 20.04

My preferred way is to install it through 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.