(Sarah Wright has recently joined a multinational company as a DevSecOps engineer. She has created a container and deployed a web application in it. Sarah would like to stop this container. Which of the following commands stop the running container created by Sarah Wright?)
When working inside an interactive Docker container session, the container continues running as long as its primary foreground process is active. Executing the exit command terminates the shell session, which in turn stops the container if no other foreground processes are running. The kill command requires a process identifier and is not used in this context, while clear simply clears the terminal screen and does not affect container execution. The stop command is not a valid shell command inside a container. Properly stopping containers during the Operate and Monitor stage helps free system resources, prevent unintended service exposure, and maintain a clean runtime environment. This practice aligns with container lifecycle management best practices and reduces operational risk.
Casey
1 day agoLisandra
6 days agoKattie
11 days agoLilli
17 days agoTheola
22 days agoKeva
27 days agoLon
2 months agoTwana
2 months agoKaty
2 months agoLuz
2 months agoStephaine
2 months agoEdna
3 months agoJeanice
3 months ago