Volume data disappeared after `docker compose down -v` or `docker volume prune`.
IntermediateTroubleshootingStorage, volumes and disk space
Answer
Likely causes → -v deletes named volumes; prune removes unused volumes.
Diagnose → docker volume ls; check shell history; look for backups.
Fix → Restore from backup; if none, data is gone (try filesystem snapshot or undelete tools on /var/lib/docker/volumes).
Prevent → Backups; guard destructive commands; label volumes and use docker volume prune --filter label!=keep.
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".IntermediateData is not persisted: after container recreate the database is empty.Intermediate`docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist`Beginner