A

Admin • 833.24K Points
Coach

Q. Which of the following is a valid Docker command to view the logs of a container?

  • (A) docker logs container_name
  • (B) docker view container_logs
  • (C) docker status container_name
  • (D) docker exec container_name logs
  • Correct Answer - Option(A)
  • Views: 43
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

'docker logs container_name' is used to view the logs of a running or stopped container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.