Dynamic Duplicate Container Image Layer Removal
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current container-based environments inefficiently manage duplicate shared container image layers, leading to unnecessary consumption of local storage space, especially when multiple applications require the same software updates.
Innovation Solution
A computer-implemented method for shared container image layer removal, where a host node analyzes layer metadata to identify duplicate shared layers across different container images with different base layers, and removes these duplicate layers from local storage, optimizing space utilization and performance.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If duplicate shared container image layers are stored in local storage for multiple container images, then reliability of container image retrieval is improved, but storage space utilization deteriorates
Solution Approach 1:
The patent merges duplicate shared layers from multiple container images into a single stored copy. By identifying layers with matching content across different container images and storing only one instance, the system maintains retrieval reliability while eliminating redundant storage consumption.
Solution Approach 2:
The patent creates a universal shared layer storage mechanism where a single layer can serve multiple container images. The layer metadata includes references to multiple container image identifiers, enabling one layer to fulfill the storage needs of multiple applications simultaneously.
2Quantity of substance
If layer metadata analysis is performed to identify duplicate shared layers, then storage space optimization is improved, but computational complexity increases
Solution Approach 1:
The patent performs preliminary layer metadata analysis when container images are initially pulled or registered. By pre-processing and storing layer content hashes and metadata during the initial setup phase, the system avoids the need for complex real-time analysis during runtime, reducing computational complexity while achieving storage optimization.
Data Source
AI summary
Shared container image layer removal is provided. It is determined whether layer metadata corresponding to a selected layer of a container image includes a referenced image identifier corresponding to a reference shared layer of an other container image stored in local storage based on an analysis of the layer metadata. In response to determining that the layer metadata corresponding to the selected layer does include the referenced image identifier corresponding to the reference shared layer of the other container image stored in the local storage based on the analysis of the layer metadata, it is determined that the selected layer of the container image is a duplicate shared layer having same content as the reference shared layer. The container image containing the selected layer that is the duplicate shared layer is removed from the local storage to decrease space utilization of the local storage and thereby increase performance.


