docker stop vs docker kill

Docker stop

This provides a graceful way of exiting the container. it will sent a SIGTERM to the main process (PID 1), then after a grace period of 10 seconds if the main process still doesn't exit it will sent a SIGKILL to forcefully kill the main process.

Docker kill

By default, this command sends SIGKILL, so no graceful shutdown.


Revision #1
Created 20 February 2023 16:51:25 by Tamarine
Updated 23 June 2023 14:12:53 by Tamarine