Answer: Assignment Day 1
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
What is the diff between docker stop and docker kill?
docker stop will send SIGTERM to the process and docker will have some-time seconds to clean up like saving files or emitting some messages.
docker stop <docker_id>
docker inspect <docker_id>
Will return “ExitCode:0”
docker kill will terminate the process used in-case the docker is in locked up state or not responding state.
docker kill <docker_id>
docker inspect <docker_id>
Will return “ExitCode:137”