News for hackers. Stuff that matters.
Re:Upgrading Executable on the Fly by mholt on Tuesday January 04, 2022 @05:03PM (#29801209)
Good point, and I'm not sure which deployment method is more popular.

In general I am personally not a fan of Docker due to added complexities (often unnecessary for static binaries like Caddy) and technical limitations such as this. All my Caddy deployments use systemd (which I don't love either, sigh).

Re:Upgrading Executable on the Fly by zimbatm on Tuesday January 04, 2022 @06:34PM (#29802561)
Technically, it should be possible to pass a file descriptor to a docker process, but I haven't seen that before.

I don't like all parts of systemd but I think the socket activation is pretty elegant. The decoupling also allows to bind on port 80 and 443 (because systemd runs as root), and then still have Caddy run as a user process. I think it would unlock nice things for Caddy.