Interview Prep/Docker/Resource Limits, Health & Reliability

`json-file` vs `local` logging driver?

BeginnerProductionResource Limits, Health & Reliability
Answer

local uses an optimized binary format with compression and rotation by default (100 MB x 5 files), lower overhead and less disk, but its files are not meant to be parsed by external agents. json-file is plain JSON lines that Filebeat/Fluent Bit tail directly. If a collector reads files from disk, keep json-file with rotation.

All Docker questions Roadmap: Docker & containers

More on Resource Limits, Health & Reliability