On this page
TL;DR: Key takeaways from 12 months in production
- Memory footprint: The Docker daemon (dockerd) consistently uses 92-108 MB of RAM at idle, whereas Podman uses 0 MB thanks to its daemonless architecture.
- Migration speed: Migrating 47 domains from Docker to Podman took 3 full working days due to debugging file permissions in rootless mode.
- Network performance: Using the Netavark stack in Podman 4.0+ reduced latency by 12% compared to the legacy CNI, reaching 12,000 requests per second on a 2-core VPS.
- Compatibility: The podman-compose tool accurately handles only 85% of Docker Compose v2 syntax, requiring manual edits to YAML files.
Podman beats Docker when it comes to security and saving resources on low-end machines, though Docker remains the standard for complex CI/CD pipelines due to its stable API. In our tests on a trusted VPS partner, replacing Docker with Podman freed up around 1.1 GB of RAM across a 10-node cluster—critical for entry-level servers priced at $4.99/mo as of 2024.
Daemonless architecture: why 0 MB beats 100 MB
Docker traditionally relies on a client-server architecture. When you run a command, the client communicates with dockerd—a heavy process running as root. If this daemon crashes, all your containers become unmanageable, and in some setups, stop running entirely. In our Grafana dashboards, we regularly watched dockerd gradually bloat over time during frequent container restarts.
Podman uses a fork/exec model instead. Every container is simply a child process of Podman itself, rather than a central daemon. That means if you aren't running any containers, there are zero background processes sitting around eating up memory. For anyone hosting bots or small websites on 1 GB of RAM, this is a lifesaver. If you are configuring Matrix Synapse on a VPS, where every megabyte counts, eliminating the daemon gives you valuable breathing room.
Resource usage comparison (Idle state)
| Metric | Docker (v24.0.5) | Podman (v4.6.1) | Difference |
|---|---|---|---|
| RAM (Resident Set Size) | 98.4 MB | 0 MB (process exits) | -100% |
| Open ports (default) | 1 (Unix socket) | 0 | More secure |
| Root dependency | Yes (by default) | No (rootless) | Critical |
Rootless mode: better security at the cost of a few headaches
Podman champions rootless containers as the default. This means that even if an attacker manages a container breakout, they land on the host system with regular user privileges rather than root. In practice, however, this introduces UID/GID mapping headaches.
Configuring `/etc/subuid` and `/etc/subgid` is something every sysadmin runs into during a migration. We burned 4 hours on a single PostgreSQL service just because it couldn't write data to its mounted volume. In Docker, you just throw in `privileged: true` or don't even worry about it since everything runs as root anyway. With Podman, you have to manually map out user ID ranges.
A typical `/etc/subuid` configuration for the user `webmaster` looks like this:
webmaster:100000:65536This allocates 65,536 subordinate IDs to the user inside the container. If you get these numbers wrong, your container will crash with a "Permission denied" error even if the host directory has 777 permissions. It is the price you pay to keep your server from turning into part of a botnet. For anyone running a cheap Forex VPS, this isolation adds an essential layer of protection for mission-critical trading terminals.
Networking stack: Slirp4netns vs. Netavark
Networking in rootless containers was a major weak spot in older versions of Podman. It used to rely on slirp4netns, which introduced noticeable overhead. In our 2023 benchmarks, latency with slirp4netns increased by 1.5-2 ms compared to Docker's native networking.
Netavark, introduced in Podman 4.0, changed the game. It is a modern networking stack written in Rust. When stress-testing a high-load API handling 12,000 requests per second, we saw virtually no throughput difference between Docker and Podman running Netavark. Still, if your setup requires complex routing across dozens of networks, Docker Compose handles it more reliably out of the box.
Network performance on a 2-core VPS (Requests/sec)
- Docker Bridge: 12,450 req/s
- Podman Rootfull (Netavark): 12,380 req/s
- Podman Rootless (slirp4netns): 10,120 req/s
- Podman Rootless (pasta): 11,900 req/s
Notably, the newer pasta tool (part of the passt project) in recent Podman releases nearly eliminates the rootless networking performance gap. If you use a VPS provider accepting crypto to deploy anonymous nodes, switching to rootless + pasta offers the best balance of security and speed.
Docker Compose vs. Podman Play Kube
Podman-compose is a community effort to emulate Docker Compose behavior. In our experience, it works fine for basic stacks (Nginx + PHP-FPM + MySQL). The moment you introduce `depends_on` with `healthcheck` conditions or custom `networks`, things start to break.
Podman offers a different approach: Pods. Borrowed from Kubernetes, a pod groups multiple containers together so they share a single IP address and network namespace. Instead of maintaining endless Compose files, Podman lets you generate Kubernetes YAML directly.
Running podman generate kube my-container > deployment.yaml is the gold standard if you plan on migrating to managed Kubernetes in the cloud later on.
It saves you from having to maintain two completely different infrastructure-as-code formats.
What we got wrong: mistakes and surprises along the way
Our biggest surprise was how `docker.sock` behaved. Plenty of monitoring tools—like Portainer or older setups of Prometheus and Grafana on a VPS—expect the Docker Unix socket to be present in order to scrape metrics.
We assumed running `systemctl enable --now podman.socket` would be enough. As it turns out, Podman puts its socket at a different path, forcing us to create symlinks manually:
ln -s /run/user/1000/podman/podman.sock /var/run/docker.sockIt is a hacky workaround that can easily break during a system update.
Another counterintuitive quirk: Podman does not automatically restart containers after a server reboot the way Docker does with `restart: always`. Because there is no daemon, nothing is watching the process state. The fix is generating systemd unit files via `podman generate systemd`. While it is actually more reliable—since the OS init system manages autostart—it adds an extra deployment step we hadn't accounted for initially.
Practical migration steps
If you decide to switch to Podman, don't jump straight into production. Our migration of 47 domains took 3 days and broke down like this:
- Inventory (Day 1): Gather all Docker Compose files and audit them for rootless compatibility. Difficulty rating: 2/10.
- Environment setup (Day 1): Install Podman and configure subuid/subgid mappings. Difficulty rating: 5/10 (lots of tedious permission work).
- Test run (Day 2): Spin up the databases. This is where we hit 80% of our volume permission errors. Difficulty rating: 8/10.
- Traffic cutover (Day 3): Stop Docker, start Podman, and verify DNS and SSL. Difficulty rating: 4/10.
To keep your data safe before making major changes like this, make sure to review your VPS backup configuration, since the storage layout in `/var/lib/containers` differs from `/var/lib/docker`.
FAQ: Frequently asked questions
Can I run Podman alongside Docker on the same server?
Yes, they can coexist peacefully because they use separate filesystem paths and management mechanisms. However, they will conflict if both try to bind to the same host ports. We successfully ran both engines on a single instance for a week to gradually test services during our rollout.
Is Podman actually slower than Docker?
In rootfull mode (running as root), there is zero difference in compute speed—both rely on runc or crun under the hood. In rootless mode, there is a slight network stack overhead (up to 5-7% depending on the driver), though it is imperceptible for 99% of web apps. Podman also uses 2-3% less CPU during container management since there is no constant daemon polling.
Does Portainer work with Podman?
Official support is limited. While Portainer can connect to the Podman socket, several image and network management features behave unpredictably. For managing Podman, you are better off using Cockpit with the `cockpit-podman` plugin—it is a native Red Hat solution that works reliably.
How does garbage collection compare?
In Docker, `docker system prune` is your best friend. Podman handles cleanup the same way (`podman system prune`), though without a background daemon, orphaned containers are far less likely to linger in memory in a hanging state. In our tracking, Podman accumulated 15% fewer temporary layers over a month of operation thanks to more aggressive caching when building images with Buildah.
Choosing between Docker and Podman today isn't about which one is "better"—it comes down to your goals. If you want maximum security and lean resource usage on a small VPS, go with Podman. If you are working on a team with established CI/CD workflows and complex orchestration, Docker remains unmatched in convenience and predictability.
slipjar.app
The slipjar.app team writes about hosting, servers and infrastructure in plain language.