Docker vs. Podman vs. plain systemd: the choice is who holds root
Docker runs a root daemon, Podman drops the daemon, and systemd drops the container runtime entirely. The differences that matter are who holds root, what restarts at boot, and what you give up for each.

On this page
In brief
- Docker is client-server: the docker CLI talks to dockerd, which runs as root by default, and membership in the docker group grants root-level privileges, according to Docker's own docs.
- Docker's rootless mode runs the daemon and containers as an ordinary user inside a user namespace, but it is a second setup needing subuid and subgid ranges and a lingering user service.
- Podman is daemonless and runs containers as root or as an ordinary user; Quadlet turns short .container files into systemd service units so containers start at boot.
- Podman ships no Compose engine: podman compose is a thin wrapper around an external provider such as Docker Compose or podman-compose.
- systemd-nspawn runs a full OS in a namespace container but has no image registry or layers, and its sandbox is easily circumvented without user namespaces.
The first command in most Docker setup guides after install is sudo usermod -aG docker $USER. It stops the sudo prompts. Docker's own documentation carries a warning next to it: the docker group grants root-level privileges. That warning contains the comparison in miniature. Docker, Podman, and plain systemd all run the same workloads on the same kernel, and all three use the same isolation primitives underneath. What differs is who holds root while they do it, and what is left running when nobody is watching.
Two facts decide the choice: who runs as root on this machine, and what restarts when it reboots. Settle those and the choice mostly makes itself.
Docker: a daemon does the work
Docker is client-server. The docker command you type sends instructions over a REST API, usually a Unix socket, to the Docker daemon, dockerd, which builds images, runs containers, and manages networks and volumes. The daemon runs as root by default and owns the socket; everyone else needs sudo or membership in the docker group. The group is the quiet part: anyone who can talk to the daemon can ask it to run a container with the host filesystem mounted, which is root by another name. Docker's docs say so plainly.
The daemon is also the reason Docker is the default. It stays up between commands, keeps state, and carries the ecosystem: Compose files that describe a whole stack in one YAML file, Docker Desktop bundling the daemon, Compose, and Kubernetes for Mac, Windows, and Linux, and a decade of tutorials written against its CLI. On a Linux server, systemctl enable docker.service starts it at boot, and containers configured to restart come back with it.
Rootless mode exists, and it is real: the daemon and its containers run as an ordinary user inside a user namespace. It is a second setup, not a flag. It needs the uidmap package's newuidmap and newgidmap, 65,536 subordinate UIDs and GIDs in /etc/subuid and /etc/subgid, and a user systemd service with loginctl enable-linger so the daemon survives logout and starts at boot. Docker's own post-install guide points people who want stronger isolation at rootless mode or a virtual machine.
Podman: no daemon in the middle
Podman removes the daemon. Each podman command is a short-lived process that talks directly to an OCI-compliant runtime such as runc or crun, the same class of runtime Docker uses underneath. The containers it creates are nearly indistinguishable from Docker's, and the CLI is deliberately familiar: most users can alias docker to podman without problems, according to the Podman docs.
The practical difference is privilege. Podman runs containers as root or as an ordinary user, and its getting-started guide assumes the latter: the examples run as a non-root user, with sudo only where root escalation is required. There is no always-on root process to compromise and no socket to guard. What Podman gives up for that is the daemon's memory: nothing is watching between commands, so a container that should survive a reboot needs something else to start it.
That something is usually systemd, through Quadlet. A short .container file in /etc/containers/systemd/ for root, or ~/.config/containers/systemd/ for an ordinary user, describes the image and its options; a systemd generator turns it into a regular service unit at boot or on daemon-reload, and the container is then managed like any other service. The integration is close enough that ordinary systemd settings pass through untouched. Two details from the docs matter before relying on it: Quadlet needs cgroup v2, and a first start can pull an image, which can take longer than systemd's 90-second default startup limit, so the docs suggest pre-pulling or raising TimeoutStartSec.
One more difference sits in the multi-container story. Docker ships Compose as part of the product. Podman does not ship a Compose engine: podman compose is a thin wrapper around an external provider, Docker Compose or the Python podman-compose tool, and it warns you that it is executing an external command. Compose files mostly work either way, but the wrapper is a dependency to install and a provider to choose, where Docker's is already there.
Plain systemd: no runtime at all
The third option drops the container runtime entirely. systemd already manages services on the host, so a long-lived application can simply be a service: a unit file with the command, a restart policy, resource limits, and logging, and nothing else to install, update, or secure. For one or two services on a box you control, that is the entire setup, and it has the fewest moving parts.
systemd can also run containers, through systemd-nspawn, which runs a command or a full Linux operating system in a lightweight namespace container, with images kept in /var/lib/machines/ and each container running as its own service through the systemd-nspawn@.service template. What it does not offer is the container ecosystem: no image registry, no layers, no Dockerfile. You build the root filesystem yourself, with a distribution tool such as debootstrap or dnf, and you carry it yourself.
The honest limit is the sandbox. systemd-nspawn's own manual says the container limits access to kernel interfaces and cannot change the host network or clock, then adds that the sandbox can easily be circumvented from within the container if user namespaces are not used, and that untrusted code must always run in a user namespace. The full feature set also needs privileges: unprivileged nspawn is limited to disk-image containers and two networking modes. Treat it as a way to run an operating system tree you built and trust, not as a boundary for code you do not.
How to choose
A few rules cover most hosts:
- A single-user workstation, or a team that already lives in Compose files and Docker Desktop, should stay with Docker. The daemon is the price of the ecosystem, and on a machine with one user it is a price already paid.
- A shared server, a homelab with services exposed to the internet, or any host where a compromised container must not mean a compromised machine, should lean Podman, run rootless, and manage containers with Quadlet. The cost is learning a second way to start things at boot and installing a Compose provider.
- One or two long-lived services on a box you fully control, where the application is a single binary or a small set of files, can skip containers entirely and run as systemd services. The cost is giving up portability: the service is tied to that host's operating system and libraries.
- If the workload is untrusted code, none of the three is a substitute for a virtual machine. A rootless container narrows the blast radius; it does not close it.
Check the privilege first, then the tooling. Run id -nG and see whether your user sits in the docker group: if it does, your account already holds root through the daemon, whatever the container boundaries suggest. The runtime that fits is the one whose answer to who runs as root here you can live with, and whose boot behavior you have actually tested, not assumed.


