Testing how signals are caught through wrapper scripts and how error values are returned.
docker build -t test-signals .
docker run --rm --name test-signals test-signals
From another window:
docker kill -s TERM test-signals
This will send a SIGTERM to the running docker container. Do it a few times; results might differ between runs.