# Volumes vs. Bind Mounts

> Compare Docker volumes and bind mounts. When would you use each, and where does tmpfs fit in?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-volumes-vs-bind-mounts
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

Compare Docker volumes and bind mounts. When would you use each, and where does tmpfs fit in?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Named Volumes, Bind Mounts, tmpfs Mounts, --mount flag, Data Persistence

Previous: [Multi-stage Builds](https://www.internhack.in/learn/interview/docker-containers/docker-multi-stage-builds) · Next: [COPY vs. ADD](https://www.internhack.in/learn/interview/docker-containers/docker-copy-vs-add) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Docker Compose](https://www.internhack.in/learn/interview/docker-containers/docker-compose-purpose)
- [Networking Drivers](https://www.internhack.in/learn/interview/docker-containers/docker-networking-drivers)
- [Graceful Shutdown (Stop vs Kill)](https://www.internhack.in/learn/interview/docker-containers/docker-container-killing-graceful)
- [Dockerizing Node.js Apps](https://www.internhack.in/learn/interview/docker-containers/dockerize-node-app-best-practices)
- [Container Security](https://www.internhack.in/learn/interview/docker-containers/docker-security-best-practices)
- [Troubleshooting & Logs](https://www.internhack.in/learn/interview/docker-containers/docker-logs-troubleshooting)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
