Currently the only way to stop Kibana running in containers is to kill -9 the process. Docker does this but after a delay and not gracefully.
See https://github.com/nodejs/docker-node/blob/87d34afc375003afadefd6b34227f77bf561046d/docs/BestPractices.md#handling-kernel-signals for more info.
There was an original attempt for this https://github.com/elastic/kibana/pull/15896 but it was abandoned.
Pinging @elastic/kibana-operations
This should be resolved with https://github.com/elastic/kibana/blob/d8de7231fc312af77b2c800d16b4fde2e3ddb7b7/src/core/server/bootstrap.ts#L110, 7.0+
Most helpful comment
This should be resolved with https://github.com/elastic/kibana/blob/d8de7231fc312af77b2c800d16b4fde2e3ddb7b7/src/core/server/bootstrap.ts#L110, 7.0+