A

Admin • 833.24K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 54
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

'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.