A

Admin • 828.03K Points
Coach

Q. Which Docker command is used to stop and remove all containers?

  • (A) docker rm -f $(docker ps -a -q)
  • (B) docker stop --all
  • (C) docker container clean
  • (D) docker container remove --all
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin
'docker rm -f $(docker ps -a -q)' stops and removes all containers on the system.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.