When you press
CTRL-C, you send a signal "die" to docker, the signal code for
CTRL-C is 9. You can change the code that will trigger "die" here.
code a signal code. The man might help you man 7 signal since at least all the codes are in it (1-31) but you may check