← All insightsSecurity

Securing Podman: least privilege and safe defaults

CodeWizard Engineering · 17 July 2025 · 3 min read · Advanced

Security with Podman is mostly correct, boring defaults applied consistently. Here is the short list that removes most of the risk.

Safe defaults

  • Run rootless and drop capabilities
  • Scan images (Trivy) and use read-only rootfs

Wire it into the pipeline

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

Reinforcing habits

  • Prefer rootless containers and Quadlet/systemd for services
  • Use podman generate kube to bridge to Kubernetes
  • Pin base images and scan them like with Docker

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