A

Admin • 833.24K Points
Coach

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

  • (A) docker logs
  • (B) docker view
  • (C) docker history
  • (D) docker inspect
  • Correct Answer - Option(A)
  • Views: 32
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

The 'docker logs' command is used to fetch the logs of a container. Use 'docker logs <container_id>' to view the logs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.