Container web-1 exists and is running. Which command stops it gracefully?
Answer & explanation
Answer: docker stop web-1
docker stop sends the configured stop signal, then forcibly terminates the container after the timeout if it has not stopped.
Practice container lifecycle with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: docker stop web-1
docker stop sends the configured stop signal, then forcibly terminates the container after the timeout if it has not stopped.