Hacker News new | ask | show | jobs
by toprerules 651 days ago
Just want to say everyone should be using podman. Its architecture is way more sane and integrates with Linux on a far more basic level (a regular process that can be started via systemd, etc. instead of a root daemon. Run it as root to get privileged containers).

They've also built an incredible ecosystem around podman itself. Red Hat has been absolutely cooking with containers recently.

5 comments

Systemd .container services (Quadlet) are excellent. I used them to set up multiple smaller sites without any issues. Containers work just like regular systemd services. I created a small Ansible template to demonstrate how simple yet powerful this solution is.

GH: https://github.com/Mati365/hetzner-podman-bunjs-deploy

I agree. I have been using it as a drop in docker replacement alongside podman compose via aliases for years now and I often just forget I am not using docker. The only time it bit me recently is when some scripts were looking for containers with docker specific labels and I had to figure out why they failed only for me.
What are the benefits of using Podman and not Docker?
From a technical perspective the big two are:

- Pod is significantly simpler than Docker, notably Podman doesn't need to run a background process, your containers run directly as separate processes.

- Podman avoids some long-standing security design weaknesses in Docker ("rootless"). Docker rootless _is_ a thing but has compatibility limits.

Rootless, daemonless, hardware passthrough, no Docker Inc pulling the rug, etc etc
If using Kubernetes, Podman's approach allows you to share config with production to a greater extent.
Licensing. No root daemon.
Docker Engine is Apache 2.0, is this not a good license? Docker has a rootless mode too.
When you say "Docker Engine" that suggests other parts of Docker are licensed differently (I haven't looked into it). I'd say you have to compare the whole ecosystem and not just a single component either way.
I said "Docker Engine" specifically because it is "Docker Engine" that is the counterpart of Podman, and therefore it is the only component that matters. The discussion here is "Docker" vs "Podman," but "Docker Engine" is what we really mean when saying "Docker."
Docker Desktop has a much more restrictive license. Unfortunately, on MacOS and Windows, the "Docker Desktop" product is often referred to as simply "Docker".

FWIW, Podman has an open source alternative to Docker Desktop as well.

No root daemon got replaced with "but if you want a replacement for docker compose you ought to be using systemd (quadlets)".

Meh

Incorrect, the use of a non-root daemon is essential for isolation and security.
Im fully on board with the idea that root daemons shouldnt be necessary I just dont want systemd to become a dependency for yet again something else it shouldnt be a dependency for.
Huh, that's another uninformed take.

systemd is at it's core an app for running services, such as containers.

You should read up on podman and systemd before making up more arguments.

Podman runs on FreeBSD without systemd, so there you go.
Process isolation
I understand that k8s uses containerd or similar daemons to run containers. Do podman's criticisms of docker also apply to k8s?
No. K8s runs containers in a way very similar to Podman. Podman is like a middle point between the simplicity of containerd and the feature set of the Kubernetes Kubelet.
Until it’s supported by AWS ECS it’s not relevant for me since that’s what my container builds are for.
Images built by Podman can be run by Docker and vice versa.