Q. What is the purpose of the 'docker-compose logs' command?

  • (A) To view logs of containers defined in a docker-compose.yml file
  • (B) To list all Docker images
  • (C) To inspect Docker networks
  • (D) To monitor Docker Hub activity
πŸ’¬ Discuss
βœ… Correct Answer: (A) To view logs of containers defined in a docker-compose.yml file
Explanation: The 'docker-compose logs' command displays logs for all containers defined in the 'docker-compose.yml' file.
Explanation by: Gopal Sharma
The 'docker-compose logs' command displays logs for all containers defined in the 'docker-compose.yml' file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
117
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
87%
Success Rate