Container Image Binaries as OS Commands

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems do not effectively utilize container images as operating system commands, limiting the integration and execution of binaries within container environments.

Innovation Solution

A method where metadata describing binaries for container images is used to integrate them into the container images, allowing the binaries to be executed as operating system commands by mapping them to container images and injecting commands into the operating system, enabling seamless execution and reuse of binaries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If container images are executed directly without integration into the operating system command structure, then the containerization process is simple and fast, but the binaries within container images cannot be accessed or executed as native operating system commands

Engineering Contradiction:
Improveexecution of binaries as OS commandsVSAvoidintegration process
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary mechanism that maps operating system commands to container image binaries. When an OS command is received, the system intercepts it, resolves it to the corresponding container image and binary, and executes it through the container runtime. This intermediary layer enables seamless integration without requiring direct modification of the OS kernel, thus improving ease of operation while maintaining acceptable complexity levels.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent creates a universal interface where container image binaries can function as native operating system commands. By establishing a mapping mechanism between OS commands and container binaries, the system enables a single binary to serve multiple functions - both as a containerized application and as a native OS command. This multi-functionality improves ease of operation without significantly increasing device complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Adaptability or versatility

If container images are integrated with the operating system by injecting commands, then binaries can be executed as OS commands, but the system complexity increases due to metadata management and command injection processes

Engineering Contradiction:
Improvebinary execution capabilityVSAvoidmetadata management
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-registering and storing metadata about container image binaries in the operating system before execution is needed. The metadata includes information about available binaries, their locations, and mapping relationships with OS commands. This pre-processing reduces the complexity of runtime metadata management, as the system only needs to retrieve and use pre-validated information rather than dynamically generating and managing all metadata during execution.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements self-service by enabling container images to automatically provide their own binary execution capabilities through the established mapping mechanism. Once the metadata is registered, the container runtime autonomously handles the resolution and execution of binaries as OS commands without requiring continuous external management or intervention. This self-service approach reduces the ongoing metadata management burden.

Inventive Principle:
Principle #25Self-service

3Productivity

If traditional container execution methods are used, then the container runtime is simple and lightweight, but the binaries inside container images cannot be reused outside the container environment

Engineering Contradiction:
Improvebinary reuse efficiencyVSAvoidcommand injection mechanism
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent enables binaries to serve dual purposes - they can be executed both within the containerized environment and as native operating system commands. By establishing a mapping between OS commands and container binaries, the same binary artifact can be reused in both contexts without duplication. This universality significantly improves productivity by eliminating redundant binary deployments while the command injection mechanism manages the integration complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The system uses a form of copying by creating a mapping reference rather than physically copying binary files. The metadata stores references to binary locations within container images, and when execution is needed, the system resolves these references and executes the appropriate binary through the container runtime. This reference-based approach enables binary reuse without the overhead of actual file copying, improving productivity while keeping the command injection mechanism relatively simple.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS11321106B2Using binaries of container images as operating system commands
Publication Date: 2022.05.03 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11321106B2 patent drawing
  • US11321106B2 patent drawing
  • US11321106B2 patent drawing

AI summary

Provided are techniques for using binaries of container images as operating system commands. Metadata describing one or more binaries for a container image is received, where each of the one or more binaries has an associated operating system command. The one or more binaries are integrated with the container image by placing the one or more binaries into the container image. Each operating system command is injected into an operating system by adding each operating system command to a command file accessed by the operating system. In response to receiving an operating system command associated with a binary of the one or more binaries, the container image is pulled using the metadata, the container image is executed with the one or more binaries, and a result is returned.