Interview Prep/Docker/Storage, volumes and disk space

`no space left on device` while pulling an image or starting a container.

BeginnerTroubleshootingStorage, volumes and disk space
Answer

Likely causes → /var/lib/docker partition full (images, build cache, logs, volumes) or inodes exhausted.

Diagnose →

df -h /var/lib/docker; df -i /var/lib/docker
docker system df -v

Fix → docker system prune -a (review first), docker builder prune, truncate huge logs, expand the disk, or move data-root.

Prevent → Separate disk, log rotation, scheduled pruning and alerts at 80%.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space