Data in Docker
#Data_in_Docker
#Volume
Data
There is essentially three types of data in Docker -> also in connection with [[Volumes]]
Application Data
Data added to the image and container in the build phase
Cant be changed once the image is built
Example: source code of application
Temporary Data
Data is updated while interaction
Fetched/produced in running container
No effect in loosing the data once the container is shutdown
Dynamic and changing but clears regularly
Need read + write permission temporarily, hence data is stored in containers layer
Permanent Data
Fetched/produced in running container
Stored in files or in a database
Must not be lost if container stops or restarts
Read + write permission is required
Data will not be removed from a container if you just stop the container or the container restarts
All the containers will different file system, hence if there is any files that are updated in one container that same scenario cannot be seen in another container
Last updated