Merge pull request #2508 from jstewmon/stop_signal

add support for stop_signal to compose file
This commit is contained in:
Aanand Prasad 2016-01-14 12:46:04 +00:00
commit 7733600262
8 changed files with 40 additions and 1 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