G

Gopal Sharma • 38.32K 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

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.