Interview Prep/Docker/Storage, volumes and disk space

`df` shows free space but Docker says no space: inodes at 100%.

AdvancedTroubleshootingStorage, volumes and disk space
Answer

Likely causes → Millions of small files (node_modules layers, many tiny containers) exhaust inodes.

Diagnose → df -i; find /var/lib/docker -xdev -printf '%h\n' | sort | uniq -c | sort -rn | head.

Fix → Prune images/containers, rebuild fs with more inodes (ext4 -N) or use XFS.

Prevent → Prefer XFS for Docker data and slim images.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space