4 ms·
What I meant is - what's the top level of the container? The target app, or an init system?
by viraptor 10y ago
What I meant is - what's the top level of the container? The target app, or an init system?
- xj9 10y agoIt's init + your app, which is exactly what you want. PID 1 has some important responsibilities that aren't handled anywhere else. I'd argue that most init systems go far beyond what you actually want PID 1 to do, but that is a different discussion.
- viraptor 10y agoI definitely don't want any init in the container. I want the app runnning in there and nothing else. For a single application system, pid 1 has only 1 responsibility - collect zombies. I treat that as an emergency solution - apps should clean their children themselves under normal circumstances. Everything else can be handled outside of the container.
- davexunit 10y agoI'm not sure what xj9 was referring to, but it's not how the tool I'm describing (that I'm the primary author of) works.
- davexunit 10y agoThe target application, which the user can define to be whatever they want. Here's launching a Ruby REPL as PID 1: guix environment --ad-hoc ruby --container -- irb