Differenece between docker stop and docker kill

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Docker stop : Stop a running container (send SIGTERM, and then SIGKILL after grace period). Will try to stop it gracefully.
If process is not stopped gracefully it will send a kill command after a specific grace period.

Docker kill : Kill a running container (send SIGKILL, or specified signal). This will stop the main entrypoint process/program abruptly. Any pending file system changes that the main process still had in memory will be lost, so the file system might end up damaged