Image layers
- Articles
- Storage Driver: Deals with layers
-
How to preserve the data that is present in writable layer
- Identify the location
- Create a volume for that location
- Volume is a seperate space which can exist even after container is deleted.
- When recreating the container reuse the volume
- A volume can be present on the docker host or any other storage locatons with the help of storage plugins.
- In Docker if your application is stateful, In your Dockerfile create a VOLUME instruction which will automatically create a VOLUME even if the user doesnt explicitly creates.

