Interview Prep/Docker/Storage, volumes and disk space

Docker Desktop VM disk is full and `docker system prune` doesn't shrink the disk image.

AdvancedTroubleshootingStorage, volumes and disk space
Answer

Likely causes → The virtual disk (Docker.raw/VHDX) grows but doesn't automatically shrink.

Diagnose → Desktop Settings > Resources shows usage; docker system df.

Fix → Prune, then use Desktop's "Clean / Purge data", reduce the disk limit, or compact the VHDX (Optimize-VHD) on Windows.

Prevent → Set a disk image size limit and prune regularly.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space