Patent ID: 11960870
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method comprising:
obtaining, by one or more processors, a first group of operations that are performed in respective layers comprised in a base image;
obtaining, by one or more processors, a second group of operations that are performed in respective layers not comprised in the base image;
optimizing, by one or more processors, the second group of operations based on a comparison between the first and second groups of operations;
in response to an operation of the second group of operations being repeated within the first group of operations, classifying, by one or more processors, the operation into a first type or a second type, the first type representing an operation changing the destination container image, and the second type representing an operation not changing the destination container image;
in response to the operation being classified as the first type, comparing, by one or more processors, the operation with the first group of operations;
in response to the operation being classified as the second type, deleting, by one or more processors, the operation from the second group; and
generating, by one or more processors, a destination container image based on the optimized second group of operations and the base image.