Bird
0
0

Which Docker logging driver stores logs as JSON files on the host machine?

easy📝 Conceptual Q1 of 15
Docker - Logging and Monitoring
Which Docker logging driver stores logs as JSON files on the host machine?
Anone
Bjson-file
Cjournald
Dsyslog
Step-by-Step Solution
Solution:
  1. Step 1: Understand Docker logging drivers

    Docker supports multiple logging drivers that determine where container logs are stored.
  2. Step 2: Identify the driver that stores logs as JSON files

    The json-file driver stores logs locally on the host in JSON format, making it easy to read and manage.
  3. Final Answer:

    json-file -> Option B
  4. Quick Check:

    Docker logging driver storing JSON logs = json-file [OK]
Quick Trick: json-file driver saves logs as JSON files locally [OK]
Common Mistakes:
  • Confusing syslog with json-file
  • Thinking journald stores JSON files
  • Assuming none stores logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes