TIL: Docker log rotation
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.