Docker image layers and its impact
- Refer Here for image layers and Refer Here for storage drivers
- The changes done in the writable layer are lost once the container is deleted.
Docker contianer lifecycle
Docker volumes
- docker volumes have a different lifecycle than containers i.e. volumes can exist even after container is deleted.
- Refer Here for volumes
VOLUME instruction
- Refer Here
- While creating images we can use this VOLUME instruction to automatically preserve data even if the user doesnot explicitly creates volumes.
