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 241779b583a4730c), but also heavily inspired by `matrix-static-files`.