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