Docker and CI/CD · Junior · Question 16 of 75
What is the difference between a volume and a bind mount?
- 1Volumes are read-only, while bind mounts can always be written
- 2Bind mounts survive container removal, while volumes never do
- ✓Correct answer: Docker manages volumes; a bind mount maps a chosen host path
Explanation
Volumes live in Docker's storage area and are the default choice for data. Bind mounts expose a specific host folder, which is handy in development for live code reloading.