Docker - Logging and MonitoringWhich Docker logging driver stores logs as JSON files on the host machine?AnoneBjson-fileCjournaldDsyslogCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand Docker logging driversDocker supports multiple logging drivers that determine where container logs are stored.Step 2: Identify the driver that stores logs as JSON filesThe json-file driver stores logs locally on the host in JSON format, making it easy to read and manage.Final Answer:json-file -> Option BQuick 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-fileThinking journald stores JSON filesAssuming none stores logs
Master "Logging and Monitoring" in Docker9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Docker Quizzes Docker Security - User namespace remapping - Quiz 9hard Docker Security - User namespace remapping - Quiz 1easy Docker Swarm - Rolling updates - Quiz 13medium Docker in CI/CD - Docker layer caching in CI - Quiz 4medium Image Optimization - Squashing layers - Quiz 3easy Image Optimization - Why image optimization matters - Quiz 2easy Image Optimization - BuildKit for improved builds - Quiz 6medium Logging and Monitoring - Docker events monitoring - Quiz 13medium Production Patterns - Ambassador container pattern - Quiz 14medium Resource Management - Container disk usage management - Quiz 5medium