Container Image Layer Segmentation for Storage Efficiency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current software container systems lack effective revision control, efficient storage resource utilization, and adequate security vulnerability scanning, leading to potential security risks and inefficiencies in managing and deploying containerized software images.

Innovation Solution

A container registry system that allows for the storage and management of container images as layers, enabling efficient storage, revision control, and security scanning, with features such as garbage collection, vulnerability sweeps, and predictive caching to optimize resource use and ensure security.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If container images are stored as complete files, then storage simplicity is maintained, but storage resource efficiency deteriorates due to redundant data across multiple images

Engineering Contradiction:
Improvestorage simplicityVSAvoidstorage resource efficiency
Core Design Contradiction:
Ease of manufactureVSLoss of substance

Solution Approach 1:

The patent segments container images into hierarchical layers (root filesystem layer, package layer, configuration layer, etc.), where each layer represents a distinct component of the container image. This segmentation enables independent storage and management of each layer, allowing redundant layers to be shared across multiple container images while storing only unique differences, thereby resolving the contradiction between storage simplicity and resource efficiency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a nested layer structure where container images are composed of nested layers, and layers themselves contain nested files and directories. This nested architecture allows smaller layer files to be contained within larger image structures, enabling efficient storage where common nested layers can be shared across multiple parent images, thus improving storage resource efficiency without sacrificing accessibility.

Inventive Principle:
Principle #7Nested doll (Nesting)

2Reliability

If security scanning is performed on all container images, then security vulnerability detection is improved, but processing time increases

Engineering Contradiction:
Improvesecurity vulnerability detectionVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments security scanning operations to target only specific vulnerable layers or files within container images, rather than scanning entire images uniformly. By identifying and isolating layers containing potential vulnerabilities (such as package layers or configuration layers), the system performs focused scanning that maintains high security detection capability while significantly reducing overall processing time compared to comprehensive full-image scanning.

Inventive Principle:
Principle #1Segmentation

3Adaptability or versatility

If revision control is implemented for container images, then version management capability is improved, but system complexity increases

Engineering Contradiction:
Improveversion management capabilityVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements revision control at the layer level rather than requiring complete image versioning. Each layer can be independently versioned and tracked, allowing the system to maintain version management capability for container images while reducing complexity by only managing revisions for specific layers that have changed, rather than treating entire images as monolithic versioned objects.

Inventive Principle:
Principle #1Segmentation

4Loss of substance

If garbage collection is performed on container image layers, then storage resource efficiency is improved, but risk of removing needed layers increases

Engineering Contradiction:
Improvestorage resource efficiencyVSAvoidrisk of removing needed layers
Core Design Contradiction:
Loss of substanceVSReliability

Solution Approach 1:

The patent implements a feedback mechanism where the system continuously monitors references to container image layers and adjusts garbage collection operations accordingly. Before removing any layer, the system checks for active references from running containers or scheduled tasks, and only removes layers that have no outstanding references. This feedback-driven approach ensures storage resource efficiency through aggressive cleanup while maintaining reliability by preventing removal of needed layers.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10002247B2Software container registry container image deployment
Publication Date: 2018.06.19 AMAZON TECH INC
  • US10002247B2 patent drawing
  • US10002247B2 patent drawing
  • US10002247B2 patent drawing

AI summary

A software image associated with a first customer of a computing resource service provider and criteria for identifying an event is received, the software image comprising a set of layers. The set of layers is stored in a first data store to form a stored set of layers, the first data store being physically located in a first region. The set of layers is copied to a second data store to form a copied set of layers, the second data store being physically located in a second region different from the first region. The copied set of layers is launched as a container executing in an instance that is physically located in the second region, and, as a result of identifying an occurrence of the event, the container is caused to be unavailable to an entity associated with the instance.