Q. Which command is used to view logs of a Docker container?

  • (A) docker logs
  • (B) docker view
  • (C) docker history
  • (D) docker inspect
πŸ’¬ Discuss
βœ… Correct Answer: (A) docker logs
Explanation: The 'docker logs' command is used to fetch the logs of a container. Use 'docker logs <container_id>' to view the logs.
Explanation by: Gopal Sharma
The 'docker logs' command is used to fetch the logs of a container. Use 'docker logs <container_id>' to view the logs.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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