Docker Container `*-json.log` Filled Entire Root Disk

Default `json-file` logging driver has no max-size rotation limit.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Docker Container `*-json.log` Filled Entire Root Disk Platform: Docker
Common Root Causes:
  • Default `json-file` logging driver has no max-size rotation limit.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Configure `max-size: "10m"` and `max-file: "3"` in `/etc/docker/daemon.json`.
Safe Diagnostic Command:
find /var/lib/docker/containers -name "*-json.log" -exec ls -lh {} +
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Default `json-file` logging driver has no max-size rotation limit. Recommended diagnostic: `find /var/lib/docker/containers -name "*-json.log" -exec ls -lh {} +`. Remediation: Configure `max-size: "10m"` and `max-file: "3"` in `/etc/docker/daemon.json`.

Worked Examples

  • Run `find /var/lib/docker/containers -name "*-json.log" -exec ls -lh {} +` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-docker-log-json-file-disk-full · Independently verified: 2026-11-25

Related Resources