nicole@web
Read post

TIL: Docker log rotation

Docker doesn't automatically rotate log files, which can lead to disk space issues as container logs grow indefinitely. The solution involves configuring log rotation in `/etc/docker/daemon.json` with settings like `max-size` and `max-file`, then restarting Docker and recreating containers for the changes to take effect. A 25 GB server disk was filled by Docker logs exceeding 10 GB per file due to this default behavior.

    #devops#linux#docker#logging
Feb 16•3m read time•From ntietz.com
Post cover image
112.2K Impressions
nicole@web's image
nicole@web

NTietz's blog is a platform for sharing knowledge and expertise in software engineering, coding tuto...

14 Followers

•

282 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard