Podman as a Docker Alternative: 9 Proven Tests, 3 Traps
Is Podman the best Docker alternative? For a Linux server or a developer laptop it often is, but the reasons are more specific than "no daemon, more secure". I put both side by side on a fresh Debian 13 virtual machine on 22 November 2026, with the versions Debian ships: Podman 5.4.2, podman-compose 1.3.0 and Docker 26.1.5 (the docker.io package). A normal user, poduser, ran rootless Podman and was also in the docker group. Below are the nine checks, with real output, including three places where the switch trips people up.
Contents
- 1. No daemon: what is actually running
- 2. Rootless by default: whose process is it
- 3. The docker group is root, and why that matters for a Docker alternative
- 4. Ports below 1024 fail rootless
- 5. Pods: shared localhost and shared ports
- 6. systemd: generate systemd is deprecated, use Quadlet
- 7. podman compose may call Docker's compose
- 8. alias docker=podman is not enough
- 9. Is Podman the best Docker alternative for you?
1. No daemon: what is actually running
The first thing a Docker alternative changes is the process model. Docker's CLI talks to dockerd, which talks to containerd. Both run as root all the time, even with zero containers:
$ systemctl is-active docker containerd
active
active
$ ps -eo user,rss,comm | grep -E "dockerd|containerd$"
root 47612 containerd
root 85264 dockerd
dockerd+containerd RSS KiB: 132876
About 130 MB of resident memory before the first container. With Podman and nothing running, there is nothing to see:
poduser$ podman ps; pgrep -a podman || echo "no podman process running"
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
no podman process running
Each podman command starts, does its work and exits. Running containers are watched by a small conmon process each, not by a central service.
2. Rootless by default: whose process is it
The second promise of this Docker alternative is rootless containers. The same sleep container, started by each engine:
$ docker run -d --name d1 docker.io/library/alpine sleep 300
USER PID COMMAND
root 4777 sleep
poduser$ podman run -d --name p1 docker.io/library/alpine sleep 301
poduser 4845 sleep 301
Docker's container process is root on the host. Podman's belongs to the user who started it. Inside, the Podman container still thinks it is root; the user namespace maps container root to the real user and the rest to a subordinate range:
poduser$ podman exec p1 id; podman unshare cat /proc/self/uid_map
uid=0(root) gid=0(root)
0 1001 1
1 165536 65536
3. The docker group is root, and why that matters for a Docker alternative
This is the test that convinced me more than any feature list. poduser is a normal user who happens to be in the docker group so they can run containers:
poduser$ docker run --rm -v /etc:/host docker.io/library/alpine head -1 /host/shadow
root:*:20760:0:99999:7:::
poduser$ podman run --rm -v /etc:/host docker.io/library/alpine head -1 /host/shadow
head: /host/shadow: Permission denied
Through Docker, a group member read the host's password hashes in one command. Docker's own security page says it plainly: "only trusted users should be allowed to control your Docker daemon", because the daemon lets you share any host directory with a container. Rootless Podman cannot give the user more than the user already has. Docker does have a rootless mode as well; it is just not what you get from apt install docker.io.
4. Ports below 1024 fail rootless
The first trap when you move a compose file or run command over to a Docker alternative:
poduser$ podman run -d --name web80 -p 80:80 docker.io/library/nginx:alpine
Error: pasta failed with exit code 1:
Failed to bind port 80 (Permission denied) for option '-t 80-80:80-80'
$ sysctl net.ipv4.ip_unprivileged_port_start
net.ipv4.ip_unprivileged_port_start = 1024
A normal user cannot bind ports below 1024. Publish a high port (-p 8080:80 returned 200 in the lab) and put a reverse proxy or a firewall redirect in front, or lower that sysctl if you accept the trade-off for the whole host.
5. Pods: shared localhost and shared ports
Pods are the feature that makes Podman more than a Docker alternative; Docker has no direct match. All containers in a pod share one network namespace:
poduser$ podman pod create --name webpod -p 8081:80
poduser$ podman run -d --pod webpod --name pw docker.io/library/nginx:alpine
poduser$ podman run -d --pod webpod --name pr docker.io/library/redis:alpine
poduser$ podman exec pw sh -c "nc -z 127.0.0.1 6379 && echo redis reachable on localhost from nginx container"
redis reachable on localhost from nginx container
Shared localhost also means shared ports. A second nginx in the same pod dies at once:
pw2 Exited (1) Less than a second ago
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
podman kube generate webpod turns the pod into a Kubernetes Pod manifest, which is a nice bridge if you deploy to Kubernetes later.
6. systemd: generate systemd is deprecated, use Quadlet
Running a Docker alternative as a service is where most guides are out of date. Many guides, including the earlier version of this one, still use podman generate systemd. Podman 5.4 prints a warning:
DEPRECATED command:
It is recommended to use Quadlets for running containers and pods under systemd.
Please refer to podman-systemd.unit(5) for details.
A Quadlet is a small unit-like file. This one in ~/.config/containers/systemd/qweb.container worked for the rootless user:
[Container]
Image=docker.io/library/nginx:alpine
ContainerName=qweb
PublishPort=8090:80
[Service]
Restart=always
[Install]
WantedBy=default.target
After systemctl --user daemon-reload the generator turns it into qweb.service with this ExecStart:
ExecStart=/usr/bin/podman run --name qweb --cidfile=%t/%N.cid --replace --rm --cgroups=split --sdnotify=conmon -d --publish 8090:80 docker.io/library/nginx:alpine
I force-removed the container and six seconds later systemd had it back ("qweb Up 5 seconds"). For it to start at boot without a login, run loginctl enable-linger <user> once, as I did for the lab user. All keys are in the podman-systemd.unit(5) page.
7. podman compose may call Docker's compose
The second trap for a Docker alternative on the same host. With both docker-compose and podman-compose installed, podman compose chose Docker's plugin and failed:
>>>> Executing external compose provider "/usr/libexec/docker/cli-plugins/docker-compose". Please see podman-compose(1) for how to disable this message. <<<<
Cannot connect to the Docker daemon at unix:///run/user/1001/podman/podman.sock. Is the docker daemon running?
Error: executing /usr/libexec/docker/cli-plugins/docker-compose up -d: exit status 1
podman compose is only a wrapper that runs an external provider. Docker Compose needs a Docker-compatible API socket, which rootless Podman only offers after systemctl --user enable --now podman.socket. Either enable that socket, or call podman-compose directly so the right tool runs.
8. alias docker=podman is not enough
The third trap: treating Podman as a drop-in Docker alternative by alias. The alias works at your prompt and nowhere else:
poduser$ alias docker=podman; docker run --rm docker.io/library/alpine echo "alias works in an interactive shell"
alias works in an interactive shell
poduser$ bash -c "docker info --format {{.Host.Security.Rootless}}"
template: :1:7: executing "" at <.Host.Security.Rootless>: can't evaluate field Host in type system.dockerInfo
The bash -c line ran the real Docker CLI, because aliases are not passed to scripts or child shells. If you want docker to mean Podman everywhere, install the podman-docker package (Debian 13 has 5.4.2+ds1) instead of Docker, which provides a docker command that calls Podman. The two engines also keep separate image stores; after the lab, Docker had only alpine and Podman had its own copies of everything, so moving to a Docker alternative means pulling or loading images again.
9. Is Podman the best Docker alternative for you?
| Check | Docker 26.1.5 (docker.io) | Podman 5.4.2 rootless |
|---|---|---|
| Background service | dockerd + containerd as root, ~130 MB | none |
| Container process owner | root | the user |
| Group member reads /etc/shadow | yes | Permission denied |
| Port 80 | works | fails, use >=1024 |
| Pods | no | yes, plus kube generate |
| Boot-time services | restart policy in dockerd | Quadlet + systemd |
| Compose | docker compose | podman-compose, or Docker Compose via podman.socket |
My recommendation: on servers where several people need containers, Podman is the better Docker alternative, mainly because of test 3. Nobody gets root through a group membership by accident. On a single-user laptop the security gap matters less and Docker's tooling is still smoother, especially Compose and Docker Desktop. Plan the move around the three traps above: high ports, the compose provider and scripts that expect docker. For the kernel side of the story (namespaces and cgroups that both engines use), see how Docker isolates containers with the kernel, and for containerd and runc compared as well, the earlier post on Docker alternatives: Podman, containerd and runc.
Comments
Post a Comment