Q. Which command stops and removes all containers defined in a Docker Compose file?

  • (A) docker-compose delete
  • (B) docker-compose shutdown
  • (C) docker-compose stop
  • (D) docker-compose down
πŸ’¬ Discuss
βœ… Correct Answer: (D) docker-compose down
Explanation: The 'docker-compose down' command stops and removes all containers defined in the compose file.
Explanation by: Rakesh Kumar
The 'docker-compose down' command stops and removes all containers defined in the compose file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
144
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
80%
Success Rate