How does Docker’s logging driver system work and what are the trade-offs between the json-file and the syslog drivers?

Docker Fundamentals Hard

Docker Fundamentals — Hard

How does Docker’s logging driver system work and what are the trade-offs between the json-file and the syslog drivers?

Key points

  • Docker logging drivers route container logs
  • json-file stores logs locally in JSON format
  • syslog forwards logs to a remote server
  • json-file can consume disk space without rotation limits
  • syslog enables centralized logging but makes docker logs unavailable

Ready to go further?

Related questions