డిఫాల్ట్గా, కంటైనర్లోని డేటా ephemeral — కంటైనర్ తీసివేయబడినప్పుడు కోల్పోతుంది. Volumes (మరియు bind mounts) persistent storage ను అందిస్తాయి, ఇవి కంటైనర్లను మించిపోతాయి, డేటాబేస్లు మరియు కంటైనర్ పునరారంభాలు/తీసివేతలను సర్వైవ్ చేయవలసిన ఏదైనా డేటా కోసం అవసరమైనవి.
సమస్య: కంటైనర్లు ephemeral
A container's writable layer is DELETED when the container is removed:
→ data written inside the container (e.g. a database's files) is LOST
→ containers are meant to be disposable/replaceable → don't store important data in them
→ For persistent data, you need storage OUTSIDE the container's lifecycle.
