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.
Sort: