A container image to run an exitpoint.sh script upon termination
A docker image that runs an exitpoint.sh script when terminated.
This image is meant primarily to be a base image that will be derived from, see the example Dockerfiles.
- Run nothing on start, exitpoint script on termination
- Synchronous (not backgrounded) command on start, with exitpoint
- Backgrounded start process, with exitpoint
These should be set by ENV statements in your derived container's Dockerfile.
EXITPOINT- Sets the path of the exitpoint script. Defaults to/exitpoint.sh.ENTRYPOINT- An optional entrypoint script to run by this base image's entrypoint script/exitpoint-entrypoint.sh.
These are environment variables that are available to your exitpoint script
CMD_EXIT- Contains the exit code as returned from the entrypoint + docker CMD.SIGNAL- Contains the name of the signal received that caused it to be called.