A

Admin • 802.91K Points
Coach

Q. Which of the following commands is used to stop all running Docker containers?

  • (A) docker stop --all
  • (B) docker stop $(docker ps -q)
  • (C) docker kill --all
  • (D) docker terminate containers
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin
'docker stop $(docker ps -q)' stops all running Docker containers by passing their IDs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.