Container Image Layer Optimization via Digest Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Container image management faces inefficiencies due to repeated operations and redundant data, leading to increased storage space and computational resource costs, as container images are generated in an iterative manner with complex architectures and redundant files.

Innovation Solution

A method and system that optimize container image generation by comparing operations in the base image and upper layers, deleting repeated operations, and combining associated operations, using layer object digests for comparison, and classifying operations to prioritize only those that change the container image, thereby reducing data redundancy and improving storage efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If container images are generated in an iterative manner with multiple upper layers, then the container image can implement specific purposes with additional operations, but the architecture becomes complicated and data amount increases leading to storage waste

Engineering Contradiction:
Improvespecific purpose implementationVSAvoiddata amount
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The patent extracts and identifies repeated operations between the base image and upper layers through comparison. By detecting these repeated operations using layer object digests, the system separates redundant data from necessary operations, allowing the upper layers to reference operations already present in the base image rather than duplicating them.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent merges operations from the base image and upper layers by comparing their digests. When repeated operations are detected, they are combined into a single instance in the optimized container image, eliminating duplication while preserving the functional capabilities provided by both base and upper layers.

Inventive Principle:
Principle #5Merging (Combining)

2Reliability

If repeated operations are included in upper layers, then the container image maintains operational completeness, but storage space is wasted due to redundant data

Engineering Contradiction:
Improveoperational completenessVSAvoidstorage space
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

Instead of physically copying repeated operations into upper layers, the patent uses references or pointers to operations defined in the base image. The layer object digest comparison mechanism allows upper layers to reference base image operations without duplicating the actual operation data, maintaining operational completeness while eliminating storage waste.

Inventive Principle:
Principle #26Copying

3Loss of substance

If all operations are compared between base image and upper layers, then repeated operations can be identified, but the processing time and computational resources increase

Engineering Contradiction:
Improveredundant data eliminationVSAvoidprocessing time
Core Design Contradiction:
Loss of substanceVSLoss of time

Solution Approach 1:

The patent applies partial comparison by focusing only on operations that are likely to be repeated, using layer object digests as a filtering mechanism. Instead of comparing all operations in detail, the system first compares digest values to quickly identify potential repetitions, then performs detailed comparison only when necessary, reducing overall processing time while maintaining effective redundant data elimination.

Inventive Principle:
Principle #16Partial or excessive action

4Adaptability or versatility

If the container image architecture includes multiple layers with additional operations, then the functionality is enhanced, but the complexity of the architecture increases

Engineering Contradiction:
ImprovefunctionalityVSAvoidarchitecture complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent segments the container image into a base image and upper layers, with clear boundaries and responsibilities. The base image contains common operations, while upper layers contain specialized operations. The optimization system maintains this segmentation while managing the relationships between layers through digest comparison, reducing the perceived complexity while preserving functionality.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11960870B2Container image management
Publication Date: 2024.04.16 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11960870B2 patent drawing
  • US11960870B2 patent drawing
  • US11960870B2 patent drawing

AI summary

Methods, systems, and computer program products for container image management are disclosed. In a method, a first group of operations that are performed in respective layers in a base image are obtained. A second group of operations that are performed in respective layers not comprised in the base image are obtained. The second group of operations are optimized based on a comparison between the first and second groups of operations. A destination container image is generated based on the optimized second group of operations and the base image.