advancedTop 100 Interview Questions

What happens to an anonymous volume created implicitly by a Dockerfile's VOLUME instruction if you don't bind it explicitly?

Docker still creates an anonymous, randomly-named volume to satisfy the mount point, but because it has no memorable name or reference, it's easy to accumulate orphaned anonymous volumes over time unless explicitly cleaned up with `docker volume prune`.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to Why doesn't the default Docker bridge network support container-name-based DNS resolution?← Back to all Docker questions