A script to run docker-compose.yml using podman
open sourceGPL-2.0-onlyself-hostablefree
podman-compose is an implementation of the Compose Specification that runs docker-compose.yml files with Podman instead of Docker Engine. It's built for rootless containers and a daemonless process model: it calls the podman command directly, with no service running in the background, and it's a single Python file that needs only Podman, a network backend with DNS name resolution (netavark and aardvark-dns, or the dnsname CNI plugin), PyYAML and python-dotenv. Podman's own podman compose command can hand Compose files to it or to Docker Compose. It lives in the containers organization beside Podman and is GPL-2.0-only.
Ways to install
Package managers
Problems it solves
- run our existing docker-compose.yml with Podman instead of Docker
- bring up a multi-container dev environment without a root daemon running
- rootless compose stack on a Fedora or RHEL machine that doesn't have Docker installed
- start a database, cache and app together from one YAML file using Podman
- a Compose implementation that doesn't need the Docker socket or a background service
- drop a single script on a server to run compose files with podman
- install compose support for Podman from pip, apt, dnf or Homebrew
Features
- implements the Compose Specification with a Podman backend
- rootless and daemonless: runs podman commands directly, no running daemon
- single Python file you can drop into your PATH
- needs Python 3.9 or newer, PyYAML and python-dotenv
- container name resolution through netavark and aardvark-dns, or the dnsname CNI plugin
- packaged on PyPI, in Debian and Fedora, and on Homebrew; a script builds a standalone binary with Docker or Podman
- legacy 0.1.x branch for Podman versions before 3.1.0
Limitations
- Doesn't support Podman versions before 3.1.0 in its 1.x releases: those need the legacy 0.1.x branch3
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what podman-compose does.
- Docker Compose Define and run multi-container applications with Docker
- Kompose Convert your Docker Compose file to Kubernetes or OpenShift
