πŸ“Š Docker
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) docker stop sends a SIGTERM signal, docker kill sends SIGKILL

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

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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
102
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
95%
Success Rate