Intermediate Docker & Containers
Q68 / 100

What is the difference between "docker stop" and "docker kill"?

Correct! Well done.

Incorrect.

The correct answer is B) "docker stop" sends SIGTERM and waits a grace period before sending SIGKILL, allowing graceful shutdown, while "docker kill" sends SIGKILL (or a specified signal) immediately, forcefully terminating the container

B

Correct Answer

"docker stop" sends SIGTERM and waits a grace period before sending SIGKILL, allowing graceful shutdown, while "docker kill" sends SIGKILL (or a specified signal) immediately, forcefully terminating the container

Explanation

docker stop gives the process a chance to clean up (close connections, flush data) before forcing termination, whereas docker kill terminates immediately without that grace period.

Progress
68/100