DEV Community

Alex Spinov
Alex Spinov

Posted on

Podman Has a Free Docker Alternative — Rootless Containers Without a Daemon

Docker Desktop costs $5/month for businesses. Podman is free, runs without root privileges, and uses the same commands.

What is Podman?

Podman is a daemonless container engine from Red Hat. It runs OCI containers without a background daemon, without root access, and with Docker CLI compatibility. Same Dockerfiles, same images, same commands.

Why Podman

1. Docker CLI Compatible

# These commands work identically
podman pull nginx:latest
podman run -d -p 8080:80 nginx
podman ps
podman logs <container-id>
podman stop <container-id>
podman build -t myapp .
Enter fullscreen mode Exit fullscreen mode

You can even alias docker=podman and most scripts work unchanged.

2. No Daemon

Docker architecture:
CLI → Docker daemon (root) → containerd → runc → container

Podman architecture:
CLI → runc → container
Enter fullscreen mode Exit fullscreen mode

No daemon means: no single point of failure, no background process consuming resources, no root-running daemon.

3. Rootless Containers

# Run containers as regular user — no sudo needed
podman run --rm -it alpine sh

# Your containers can't escalate to root on the host
# Even if a container escapes, it has no root privileges
Enter fullscreen mode Exit fullscreen mode

4. Pod Support (Kubernetes-Style)

# Create a pod (group of containers sharing network)
podman pod create --name myapp -p 8080:80

# Add containers to the pod
podman run -d --pod myapp --name web nginx
podman run -d --pod myapp --name api node:20 node server.js

# Both containers share localhost — web can reach api on 127.0.0.1
Enter fullscreen mode Exit fullscreen mode

5. Generate Kubernetes YAML

# Run your containers, then export as Kubernetes manifests
podman generate kube myapp > myapp.yaml

# Or play a Kubernetes YAML file
podman play kube myapp.yaml
Enter fullscreen mode Exit fullscreen mode

6. Podman Compose

# Works with docker-compose.yml files
pip install podman-compose
podman-compose up -d
Enter fullscreen mode Exit fullscreen mode

Or use docker compose with Podman's Docker-compatible socket.

Podman vs Docker

Podman Docker
Daemon Daemonless Requires daemon
Root required No (rootless) Yes (by default)
CLI compatibility 99% Docker-compatible N/A
Pod support Native No
Kubernetes export Built-in No
Desktop license Free $5/month (business)
Systemd integration Native Limited
Security Rootless + SELinux Root daemon

Getting Started

# macOS
brew install podman
podman machine init
podman machine start

# Linux (Fedora/RHEL)
sudo dnf install podman

# Ubuntu/Debian
sudo apt install podman
Enter fullscreen mode Exit fullscreen mode

The Bottom Line

Podman is Docker without the daemon, without root, and without the license fee. If security matters or you're tired of paying for Docker Desktop, Podman is the answer.


Need data tools? I build scraping solutions. Check my Apify actors or email spinov001@gmail.com.

Top comments (0)