What is Podman? Daemonless, rootless containers, pods, and systemd
Meet Podman: the daemonless, rootless-by-default container engine compatible with the Docker CLI, with pods, Kubernetes YAML integration, Quadlet for systemd, Podman Desktop, and when to choose Podman or Docker.
Containers$ podman kube play pod.yaml▍If you already use Docker, you know the flow: a central service, dockerd, runs all the time (usually as root) and the CLI talks to it. Podman does the same job differently: without a daemon and, when run by a regular user, without root. And the CLI is so similar that many people simply do:
alias docker=podman
Podman originated at Red Hat, is open source under the Apache-2.0 license, and works with images and containers in the OCI standard, the same one used by Docker and Kubernetes. An image built with one runs on the other.
Daemonless and rootless: what that means
- Daemonless: there’s no central service brokering everything. When you run
podman run, the command itself creates the container (through an OCI runtime such as crun or runc) and leaves a small monitor process,conmon, looking after it. So there’s no single point of failure that takes down every container at once. - Rootless by default: a regular user runs containers without
sudo. Podman uses user namespaces (a Linux kernel feature that maps “root” inside the container to your unprivileged user outside it). If someone escapes the container, they land as a regular user, not as root on the machine.
Each user has their own images and containers: what you pull with your user doesn’t show up for whoever runs sudo podman, and vice versa.
The commands you already know
podman pull docker.io/library/nginx:alpine
podman run -d --name web -p 8080:80 docker.io/library/nginx:alpine
podman ps
podman logs -f web
podman exec -it web sh
podman build -t my-app:1.0 . # accepts a Dockerfile or Containerfile
podman stop web && podman rm web
Tip: use fully qualified image names (docker.io/library/nginx). With short names like nginx, Podman checks the list of registries configured on the system and may ask which one to pull from.
Pods: the concept the project is named after
A pod is a group of containers that share the same network namespace, just like Kubernetes pods. In practice, they reach each other via localhost, and ports are published on the pod, not on each container:
podman pod create --name my-pod -p 8080:80
podman run -d --pod my-pod --name web docker.io/library/nginx:alpine
podman run -d --pod my-pod --name cache docker.io/library/redis:7-alpine
podman pod ps
podman ps --pod
Here, nginx reaches Redis at localhost:6379. Each pod also has a small infra container that exists only to “hold” the shared namespaces.
From Podman to Kubernetes and back
Because the model is the same, Podman converts pods into Kubernetes YAML and vice versa:
podman generate kube my-pod > pod.yaml # export the pod as a manifest
podman kube play pod.yaml # create pods/containers from the YAML
podman kube down pod.yaml # remove what was created
podman kube play replaces the older podman play kube. It’s a great way to test simple manifests on your machine before taking them to a cluster. To understand what happens on the other side, see how Kubernetes works.
Containers as systemd services with Quadlet
On Linux, systemd is the service manager that starts everything at boot. Without a daemon, who restarts your containers? systemd itself. The recommended way is Quadlet: you write a declarative file and Podman generates the service unit automatically.
For a regular user, create ~/.config/containers/systemd/web.container (for system services, use /etc/containers/systemd/):
[Unit]
Description=nginx web server
[Container]
Image=docker.io/library/nginx:alpine
PublishPort=8080:80
[Service]
Restart=always
[Install]
WantedBy=default.target
systemctl --user daemon-reload # Quadlet generates web.service
systemctl --user start web.service
systemctl --user status web.service
loginctl enable-linger "$USER" # keep user services running without a login
The [Install] section makes the service start with the system; you don’t need to (and can’t) run systemctl enable on generated units. There are also .pod, .volume, .network, and .kube files. The older podman generate systemd is deprecated: it still works, but it doesn’t get new features.
Podman on macOS and Windows
Linux containers need a Linux kernel. Outside Linux, podman machine creates and manages a lightweight VM (on Windows, it can use WSL 2):
podman machine init
podman machine start
podman info
If you prefer a graphical interface, Podman Desktop (also open source) manages containers, pods, images, and the VM. Another GUI option is Kiri.
Compose, Buildah, and Skopeo
- Compose:
podman composeis a wrapper that calls an external provider, such asdocker-composeorpodman-compose(a separate project, written in Python). Podman can also expose a Docker-compatible API (podman system serviceor the systemdpodman.socket), which tools likedocker-composecan use. Complex files may behave differently; test yours. - Buildah: a tool specialized in building OCI images;
podman builduses its code under the hood. - Skopeo: inspects and copies images between registries without pulling them into local storage:
skopeo inspect docker://docker.io/library/nginx:alpine
skopeo copy docker://docker.io/library/nginx:alpine docker://registry.example.com/nginx:alpine
Docker vs. Podman
| Aspect | Docker | Podman |
|---|---|---|
| Architecture | Central daemon (dockerd) |
Daemonless (fork/exec + conmon) |
| Root | Daemon runs as root by default; optional rootless mode | Rootless by default for regular users |
| Pods | No | Yes, Kubernetes-style |
| systemd | Daemon restart policies or hand-written units | Native, with Quadlet |
| Kubernetes YAML | Doesn’t generate or run it | generate kube and kube play |
| Desktop app | Docker Desktop | Podman Desktop |
| License | Open source Engine (Apache-2.0); Docker Desktop has commercial terms | Apache-2.0 |
When to choose each
Choose Podman if security and rootless operation are a priority, if you use Fedora, RHEL, or derivatives (where it’s the default), if you want to run containers as systemd services on servers, or if you want to avoid commercial licensing on the desktop. Choose Docker if your team and tools depend on the Docker ecosystem (advanced Compose, extensions, CI integrations that expect the Docker socket) and licensing isn’t an issue. Both speak OCI, so switching later is quite feasible. If Linux is still new to you, start with what is Linux.
Summary
- Podman runs containers without a daemon and, for regular users, without root
- The CLI is Docker-compatible;
alias docker=podmancovers most cases - Pods group containers that share the network, as in Kubernetes
-
podman generate kubeandpodman kube playbridge to Kubernetes YAML - Quadlet turns containers into systemd services;
generate systemdis deprecated - On macOS and Windows, use
podman machineor Podman Desktop - Buildah builds images and Skopeo inspects and copies images between registries
Same containers, same images, fewer privileges: Podman proves you can take the daemon and root out of the equation.