up9inc/mockintosh

Docker fails to stop container gracefully

kedder opened this issue · 0 comments

I'm using up9inc/mockintosh docker image to run mockintosh server. When I try to stop the running docker container, it will not stop immediately. Instead, docker will wait for around 10 seconds and then force-kill it, which is pretty annoying.

I think the reason is that mockintosh entry point does not react to SIGTERM signal: if I exec bash in the running container and run kill 1 there, nothing happens, even though that command is expected to terminate the mockintosh process.