DigiNews

Tech Watch Articles

← Back to articles

TIL: Docker log rotation

Quality: 8/10 Relevance: 9/10

Summary

A personal TIL post about Docker log rotation. It explains that Docker logs don’t rotate automatically, presents a config example using the json-file driver with max-size and max-file, and shows steps to apply the change (edit /etc/docker/daemon.json, restart Docker, and recreate affected containers) to prevent disk space issues.

🚀 Service construit par Johan Denoyer