docker kill means kill in the sense of "make it dead", as opposed to the POSIX sense of "send a signal".
We have several containers that we need to send a
SIGHUP to in order to reload configuration, but this causes them to ignore their restart policy of "always", which isn’t what we want.
What’s the best way to send signals to these containers without affecting their ability to auto-restart?
--signal option to
docker kill --signal=SIGHUP <container>
docker exec <container> killall -HUP nginx
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.