Docker Foundations Professional Certificate Practice Test 2026 - Free Docker Certification Practice Questions and Study Guide

Session length

1 / 20

What command is used to stop a running Docker container?

docker stop

The command used to stop a running Docker container is "docker stop." This command sends a SIGTERM signal to the main process within the container, allowing it to gracefully shut down and complete any ongoing operations before exiting. This is particularly important in scenarios where data integrity is a concern, as it gives the application running in the container a chance to clean up resources and save state, if necessary.

Using "docker stop" is a common practice because it provides a controlled shutdown process. If the container does not stop within a default timeout period, a SIGKILL signal is sent to forcefully terminate the process, ensuring that the container does eventually stop.

While other commands may also influence container operation, "docker stop" is specifically designed for a graceful and standardized approach to stopping containers. This is in contrast to options that might imply immediate or forced termination without allowing for a graceful shutdown.

docker kill

docker shut

docker terminate

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy