بشكل افتراضي، البيانات داخل الحاوية مؤقتة — تُفقد عند حذف الحاوية. Volumes (و bind mounts) توفر تخزيناً دائماً يستمر بعد انتهاء الحاويات، وهو ضروري للقواعد البيانات وأي بيانات يجب أن تحافظ على نفسها عند إعادة تشغيل/حذف الحاويات.
المشكلة: الحاويات مؤقتة
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.
