ડિફૉલ્ટ રીતે, કન્ટેનર માં ડેટા અস્થાયી હોય છે — જ્યારે કન્ટેનર દૂર કરવામાં આવે તો તે ખોવાઈ જાય છે. વોલ્યુમ્સ (અને બાઇન્ડ માઉન્ટ્સ) પર્સિસ્ટન્ટ સ્ટોરેજ પ્રદાન કરે છે જે કન્ટેનર્સ કરતાં આગળ ટકી રહે છે, જે ડેટાબેસ્ સ અને કોઈ પણ ડેટા માટે આવશ્યક છે જે કન્ટેનર રિસ્ટાર્ટ/રિમૂવલ સાથે સરવાઈ રહે.
સમસ્યા: કન્ટેનર્સ અસ્થાયી છે
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.
