V

Vijay Sangwan • 28.62K Points
Instructor II

Q. What is the difference between 'docker stop' and 'docker kill'?

  • (A) docker stop terminates containers immediately, docker kill gracefully stops them
  • (B) docker stop sends a SIGTERM signal, docker kill sends SIGKILL
  • (C) docker stop is for containers, docker kill is for images
  • (D) docker stop is a safer method, docker kill is faster

Explanation by: Vijay Sangwan
'docker stop' sends a SIGTERM signal to gracefully stop a container, while 'docker kill' sends a SIGKILL signal to forcefully stop it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.