News for hackers. Stuff that matters.
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by rat9988 on Saturday July 27, 2019 @11:12AM (#20542367)
>Anyway, I didn’t necessarily blame Docker for it, but it did add force to an argument I’d heard before:

Why does Docker need a daemon at all?

Re:Goodbye Docker: Purging Is Such Sweet Sorrow by tyingq on Saturday July 27, 2019 @11:35AM (#20542478)
I am similarly confused as to why docker needs a daemon. For what's provided in the API, I don't see the need...it could all happen in the client.

Contrast with LXD. It has a daemon as well, but it tracks containers and state across multiple hosts, so the need is obvious. The single host LXC doesn't have a daemon.

Re:Goodbye Docker: Purging Is Such Sweet Sorrow by argd678 on Saturday July 27, 2019 @11:47AM (#20542537)
Well for one, it can restart the container when it fails or on boot up. I don’t see how having no process minder improves anything, you could argue systemd shouldn’t be a daemon too and sysv init scripts are better too.
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by isostatic on Saturday July 27, 2019 @12:24PM (#20542704)
> you could argue systemd shouldn’t be a daemon too and sysv init scripts are better too.

You certainly could.

Re:Goodbye Docker: Purging Is Such Sweet Sorrow by oblio on Saturday July 27, 2019 @01:14PM (#20542969)
And you'd be wrong... The init system will always be a daemon, for obvious reasons ;-)
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by isostatic on Saturday July 27, 2019 @02:42PM (#20543439)
You're begging the question that systemd should be the init system
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by oblio on Sunday July 28, 2019 @05:33AM (#20546628)
I'm not. The original questions were:

> systemd shouldn’t be a daemon too

A. False.

> and sysv init scripts are better too

B. Debatable, but the start is a false premise, SysV init was a daemon plus the scripts.

Re:Goodbye Docker: Purging Is Such Sweet Sorrow by tpush on Saturday July 27, 2019 @12:39PM (#20542775)
Systemd not being a daemon doesn't make any sense; both it and SysV are init systems which are by necessity daemonized processes.
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by majewsky on Saturday July 27, 2019 @01:38PM (#20543099)
Well technically PID 1 is not a daemonized process because there is no one who could have daemonized it.
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by weberc2 on Saturday July 27, 2019 @06:56PM (#20544759)
That’s the point. The same principle applies to Docker. Although conceivably the daemon could be just about process/container management instead of image management as well.
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by tpush on Saturday July 27, 2019 @08:34PM (#20545176)
Well, the argument that Red Hat makes is that there already is systemd as a daemon for process management; all other functionality that docker provides does not necessitate a daemon. Thus Podman, Buildah etc.
Re:Goodbye Docker: Purging Is Such Sweet Sorrow by tyingq on Saturday July 27, 2019 @12:23PM (#20542701)
Auto-restart isn't even default behavior though. I'd argue for "start a daemon when needed behavior."