Q2. What is the 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 command stops the container ie, changes status from RUNNING to EXITED. The client can restart the docker container if they want.

docker kill command kills the docker container. The image can be removed from the docker after kill.