docker stop --time
--timeout
-t
`-t` works on both old and new Docker versions, so it's best to use that.
This is split out from matrix-cactus-comments (see 241779b583), but also heavily inspired by `matrix-static-files`.
241779b583