Image layers listed under `/var/lib/docker/overlay2` but not in `docker images` (orphaned).
AdvancedTroubleshootingStorage, volumes and disk space
Answer
Likely causes → Interrupted pulls/builds or daemon crash leaving layer dirs.
Diagnose → du -sh /var/lib/docker/overlay2; compare with docker system df.
Fix → docker system prune -a; if still large, stop Docker, back up, and clear /var/lib/docker for a rebuild (images re-pulled, volumes backed up first).
Prevent → Avoid killing dockerd with SIGKILL; keep disks healthy.
More on Storage, volumes and disk space
`no space left on device` while pulling an image or starting a container.Beginner`df` shows free space but Docker says no space: inodes at 100%.Advanced`/var/lib/docker/containers/<id>/<id>-json.log` is 50 GB.Beginner`docker system prune` did not free much although `docker system df` shows large "Reclaimable".IntermediateVolume data disappeared after `docker compose down -v` or `docker volume prune`.IntermediateData is not persisted: after container recreate the database is empty.Intermediate