elihaims / socket-kiwi

SocketKiwi, because data should be free.
0 stars 0 forks source link

[Swarm mode] Define signals used to stop containers for updates #33

Open elihaims opened 8 years ago

elihaims commented 8 years ago

I'm not sure, but I suspect docker does a docker stop (ie. sending a SIGTERM to a container, and then a SIGKILL after waiting 10 seconds) when performing "rolling updates" on a service. With some images, like https://hub.docker.com/_/httpd/, this is actually a destructive (non-graceful) way to stop containers, since apache needs a SIGWINCH to actually shutdown in a graceful way.

It would be awesome if we could define a signal used to stop services when creating them, for example:

docker service create --stop-signal SIGWINCH --name my-apache-container httpd:latest

21bounty $100

21bot commented 8 years ago

$100 has been placed in escrow.

21bot commented 8 years ago

The bounty of $100.00 has been claimed by @elihaims.