Patent attributes
Intelligent layer control for building image files into new container images while avoiding redundant files stored between read-write and read-only image layers. Pre-commit processing module (PPM) filters updated files. Hash values of updated files are compared with hash values of original files. Where hash values are the same, PPM generates an OMD file that updates the inode metadata of original files with metadata of the updated file and removes the updated file. Hash values that are not the same, with differ values less than a threshold value, PPM generates an OMD file with updates to the inode metadata, content change flag and/or delta content info reflecting the updated file and removes updated file from container file system. OMD files are passed to storage driver whereby metadata and/or changes to content are overridden and merged with original file content generating a single unified user view of the container file system.