← All insightsAutomation

Automating Podman from scratch

CodeWizard Academy · 16 July 2025 · 3 min read · Intermediate

Anything you do to Podman twice should be automated. This walks the path from a manual install to a repeatable, pipeline-driven setup.

1. Install it reproducibly

bash
sudo apt-get install -y podman   # or brew install podman
podman info
alias docker=podman

2. Describe the desired state

Run a rootless container and generate a systemd unit.

bash
podman run -d --name web -p 8080:80 nginx:alpine
podman generate systemd --new --name web > ~/.config/systemd/user/web.service
systemctl --user enable --now web

3. Run it from CI

Build and push with Buildah/Podman in CI.

yaml
- run: podman build -t ghcr.io/acme/web:$GITHUB_SHA .
- run: podman push ghcr.io/acme/web:$GITHUB_SHA

Want senior help putting Podman to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult