This discussion of signals and processes has the following suggestions:
- Use the exec/JSON array form of
ENTRYPOINT. - Use
execin shell entrypoints. - Don’t pipe your application’s output.
- Avoid being PID 1.
- Listen for
SIGTERMor setSTOPSIGNALin your Dockerfile.
Do these suggestions apply to our balenalib based containers?