Answer: Assignment Day 1

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”