Q. Which of the following commands is used to stop all running Docker containers?
β
Correct Answer: (B)
docker stop $(docker ps -q)
Explanation: 'docker stop $(docker ps -q)' stops all running Docker containers by passing their IDs.