Module intermodal_rs::storage
source · [−]Expand description
Related to handling of ‘storage’ of images.
When we want to do something useful with the ‘images’, we need to ‘mount’ those images to be able to work with those images. How the images can be ‘mounted’ is determined amongst other things by the underlying filesystem on which we want to mount the image. This involves, what is called as ‘applying’ the layer as described in layer specification.
Clearly this will be different for different file systems. We’ll initially support ‘overlay’ file-system.
This will be the layout of the directories
<~/.local/share/intmod>/storage/root_fs.layers
of the Image
configuration.
<…/intmod/storage
The above directory has Following two entries
rootfs/ - Directory that the container runtime will use as a root filesystem container.json - Optional / Empty file containing the runtime config (this may change.) if the ‘mount’ corresponds to a running container.
This module is responsible for handling all the storage related details (losely corresponds to ‘docker storage drivers’).