News for hackers. Stuff that matters.
Re:Podman: A Daemonless Container Engine by raesene9 on Thursday February 11, 2021 @10:29AM (#26102489)
Out of curiosity, why do you prefer daemonless setups?
Re:Podman: A Daemonless Container Engine by georgyo on Thursday February 11, 2021 @10:33AM (#26102569)
If I have 30 containers running, why should a single daemon being restarted cause all 30 to shutdown as well?

Similarly, the docker security model is that there isn't a security model. If you can talk to the docker socket you have what ever privileges the daemon is running as.

Re:Podman: A Daemonless Container Engine by raesene9 on Thursday February 11, 2021 @10:38AM (#26102637)
So Docker supports live restore https://docs.docker.com/config/containers/live-restore/ which addresses the first point.

Second point, yep if you run Docker as root and someone can access the socket file they get root.

If that's a concern, you can run Docker rootless.

And as we're talking file permissions on a local host to allow that access, the same applies to podman containers does it not? If there are permission issues allowing another user to use access the container filesystems, you have the same problem.

Re:Podman: A Daemonless Container Engine by zaarn on Thursday February 11, 2021 @10:53AM (#26102896)
Rootless Docker is basically a joke, I've tried to run production workloads on it for about a year before I gave up. Numerous docker images will refuse to work, a bunch of things will subtly fill your error logs with warnings and it doesn't mesh well with running docker swarm at all.
Re:Podman: A Daemonless Container Engine by raesene9 on Thursday February 11, 2021 @10:57AM (#26102972)
Rootless docker only left experimental status with 20.10 which came out in December 2020, so maybe they would have addressed some of those issues...

As to swarm, I was comparing Docker rootless to podman, which is more a developer use case than prod. container clusters.

Re:Podman: A Daemonless Container Engine by mbreese on Thursday February 11, 2021 @10:45AM (#26102763)
When you use a system-level daemon[0], the daemon has to have privileges to start a container as anyone (that is... root). In a daemon-less environment, you only need the privileges of the user who is starting the container.

[0] I suppose you could have a user-level daemon that runs for each user that needs to run containers, but that's even more overhead.

Re:Podman: A Daemonless Container Engine by raesene9 on Thursday February 11, 2021 @10:49AM (#26102848)
Docker does allow for daemonless execution, but as you say one daemon per user will add a bit of overhead.

There's some tradeoff I guess though, between rootful setup and per user, as images duplication per user could add up.

Re:Podman: A Daemonless Container Engine by stuaxo on Thursday February 11, 2021 @10:47AM (#26102808)
It's a pain having to setup root access or a user for Docker. At a financial institution I worked at we had to waste about half a day to get this setup (and that's once we worked out who we had to speak to).
Re:Podman: A Daemonless Container Engine by raesene9 on Thursday February 11, 2021 @10:50AM (#26102852)
FWIW you can run Docker rootless (as an ordinary user) now.
Re:Podman: A Daemonless Container Engine by u678u on Thursday February 11, 2021 @06:00PM (#26108627)
At my firm you're forbidden from getting root access, docker is not allowed, podman is.