Date: Tue, 31 Dec 2024 23:16:23 +0700 From: JH Foo <jhfoo@kungfoo.info> To: freebsd-jail@freebsd.org Subject: jail services in podman Message-ID: <9efebe67-e4e4-4919-bfdf-b7e29f4f0079@kungfoo.info>
next in thread | raw e-mail | index | archive | help
Not sure if this is a jail or podman thing: I'm learning about running apps in Podman, and the recommendation seems to be to include a CMD in Containerfile/Dockerfile. When the binary called by the CMD ends, the jail is stopped. In the example (https://gitlab.com/bergblume/podman-caddy-on-freebsd/-/blob/master/caddy.yml?ref_type=heads), Caddy is run daemonless using this technique. My question is: in the world of sidecars is this still the right way to execute long-running (e.g. API) services? I'm using Bastille now and I set up Caddy (for example) as a service in /etc/rc.conf. Is this considered anti-pattern in Podman/OCI containers?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9efebe67-e4e4-4919-bfdf-b7e29f4f0079>