Closed sciurus closed 6 years ago
Can we clarify to say that while containers should only run one process at at time, they are able to do more than one thing depending on invocation?
Yeah, maybe it's more "Each instance of a container should only run one process. If you need to run two processes, just create another instance of the container & run a different command"
I like your wording jbuck, so I've swapped it in.
Approving my own wording, yeah!
I think there's a number of reasons to run only one process. It lets us more reliably detect whether a container is still running everything we need it to, it lets us generate a coherent stream of logs, etc.
I'm unsure whether to explicitly mention that it's okay to run a single master process that manages its own worker processes (e.g. uwsgi). Another way to accomplish that might be to say "program" rather than "process".