What you need to know
Editing daemon defaults does not retrofit existing containers’ logging configuration.
Potentially affected
Review json-file rotation settings on newly created containers and compare existing containers separately.
DSE recommendation
DSE recommends inventorying current containers and their effective logging options before declaring rotation complete.
Editing daemon defaults does not retrofit existing containers’ logging configuration.
Source facts
Docker’s json-file logging driver supports max-size and max-file options for rotation. The documentation states that daemon-level changes take effect for newly created containers after the daemon configuration is applied. Existing containers do not automatically use the new logging configuration. Their effective settings must therefore be checked separately from the host default.
Source: Docker documentation — JSON File logging driver.
Applicability
Review json-file rotation settings on newly created containers and compare existing containers separately.
DSE recommendation
DSE recommends inventorying current containers and their effective logging options before declaring rotation complete. Plan replacement through the workload’s managed deployment procedure so state and availability are preserved. Keep the desired limits in that definition as well as any host default. Compare log production with available disk space and retention needs, and send required historical records to a suitable archive. Track containers intentionally deferred from recreation so a changed default does not create a false sense that all disks are protected.
Verification
Create a disposable container after the configuration change and inspect its driver and rotation options. Compare an older container to demonstrate the difference. Generate only safe test output and verify rotation without modifying daemon-managed files. Confirm the production replacement plan covers every relevant workload. Retain a per-container replacement checklist with the inspected options. Ask the logging owner to approve any intentionally different retention behavior, and keep required archive delivery separate from the local rotation exercise.
Official reference
Docker documentation — JSON File logging driver. Reviewed October 20, 2026.
Review the official source
Docker documentation — JSON File logging driver · Verified October 20, 2026
Need help applying this guidance safely?
DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.
Talk with DSE