Interview Prep/Docker/Storage, volumes and disk space

`/var/lib/docker/containers/<id>/<id>-json.log` is 50 GB.

BeginnerTroubleshootingStorage, volumes and disk space
Answer

Likely causes → json-file driver without rotation and a chatty app.

Diagnose → ls -lhS /var/lib/docker/containers/*/*-json.log | head

Fix → Immediately truncate -s 0 &lt;file>; set max-size/max-file or local driver in daemon.json; recreate containers.

Prevent → Global log rotation and less verbose logging.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space