US 11,954,474 B2
Generating compliant container images via embeddings
Ashok Pon Kumar Sree Prakash, Bangalore (IN); Akash Nayak, Raipur (IN); Giriprasad Sridhara, Bangalore (IN); Padmanabha Venkatagiri Seshadri, Mysore (IN); Harikrishnan Balagopal, Thrissur (IN); Pablo Salvador Loyola Heufemann, Tokyo (JP); and Amith Singhee, Bangalore (IN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Jun. 14, 2022, as Appl. No. 17/806,739.
Prior Publication US 2023/0401051 A1, Dec. 14, 2023
Int. Cl. G06F 8/61 (2018.01); G06V 10/74 (2022.01)
CPC G06F 8/63 (2013.01) [G06V 10/761 (2022.01)] 14 Claims
OG exemplary drawing
 
1. A method comprising:
receiving, by one or more processors, a non-compliant container image, wherein the non-compliant container image is not compliant with a target computing environment;
extracting, by the one or more processors, a one or more embeddings from the non-compliant container image;
comparing, by the one or more processors, the one or more embeddings from the non-compliant container image to a plurality of one or more embeddings from an image catalog;
identifying, by the one or more processors, that a layer of the non-compliant container image violates at least one policy rules for the target computing environment;
identifying, by the one or more processors, a similar image from the image catalog based on the comparison of layer embeddings from the non-compliant container image and the similar image;
extracting, by the one or more processors, a one or more layer embeddings from at least one layer of the non-compliant container image;
comparing, by the one or more processors, the one or more layer embeddings to a plurality of one or more layer embeddings for layers of images retrieved from the image catalog;
replacing, by the one or more processors, a layer in the non-compliant container image with a layer from the similar image retrieved from the image catalog based on the comparison of the one or more layer embeddings to the plurality of one or more layer embeddings for layers of images retrieved from the image catalog; and
deploying, by the one or more processors, the similar image in the target computing environment.