What is the difference 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 kill and stop are two command used to terminate the container execution.
docker kill – Used to forcefully terminate execution of container, which does not attempt to shut down the process gracefully.
docker stop – Used to terminate execution safely and gracefully.

docker kill [OPTIONS] CONTAINER [CONTAINER…]

docker stop [OPTIONS] CONTAINER [CONTAINER…]