Interview Prep/Docker/Storage, volumes and disk space

Container writable layer huge: `docker ps -s` shows SIZE 20GB (virtual 21GB).

IntermediateTroubleshootingStorage, volumes and disk space
Answer

Likely causes → App writes data/logs/temp files into the container FS.

Diagnose → docker ps -s; docker diff c | head; docker exec c du -xh / | sort -h | tail.

Fix → Move data to volumes, clean temp files, add log rotation.

Prevent → Read-only root FS reveals such writes early.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space