add support for stop_signal to compose file

Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
This commit is contained in:
Jonathan Stewmon 2015-12-04 16:40:09 -06:00
commit 5d8c2d3cec
7 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,10 @@
simple:
image: busybox:latest
command:
- sh
- '-c'
- |
trap 'exit 0' SIGINT
trap 'exit 1' SIGTERM
while true; do :; done
stop_signal: SIGINT