IT Toolbox
Menu
HomeDocker volume fills the Linux disk
Troubleshooting

Docker volume fills the Linux disk

A container volume or log gradually consumes the entire filesystem

TopicIT troubleshooting → About 4 min read

A container volume or log gradually consumes the entire filesystem.

Probable causes

  • json / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
  • Application volume.
  • Retention.

Verifications.

  1. Limit the impact. — Identify whether an endpoint, service, or whole site is affected.
  2. Collect evidence. — Keep the exact error message, timestamp, and associated logs.
  3. Test the simplest hypothesis first. — Compare the affected system with a known-good path.
  4. Correct the confirmed cause and validate the result. — Apply one controlled change at a time and retest.

Commands

docker system df

Solutions.

  • Correct the confirmed cause rather than the symptom.
  • Document the change and its result.
  • Establish monitoring if the fault can recur.

When to escalate?

Escalate if the impact expands, data are at risk, or remediation requires an irreversible change.

Docker storage focus

A full Linux filesystem can be caused by named volumes, container logs, writable layers, images or build cache. Identify the actual consumer before pruning so persistent application data is not deleted by mistake.

What to verify

  • Use Docker disk-usage reporting and filesystem tools to compare images, containers, volumes, logs and the Docker data root.
  • Map large volumes back to the containers or services that own them and check whether the application is retaining data unexpectedly.
  • Inspect container log growth and confirm that log rotation is configured.
  • Check deleted-but-still-open files and filesystem reserved space if Docker reports less usage than the host filesystem.

Resolution path

Remove only confirmed unused objects, rotate or cap logs, correct application retention, or expand and relocate storage where persistent growth is legitimate. Treat broad prune commands as destructive operations that require prior verification.

Validation

Confirm free space remains stable after the workload runs normally and that every persistent container still has its expected data.

Support the development of BAOI Hosting, domains and new IT resources.
❤️ Support BAOI

My favorites