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

Claim 5:
6. A computer program product comprising:
one or more computer-readable storage medium and program instructions stored on the one or more computer-readable storage medium, the program instructions comprising:
program instructions to receive a non-compliant container image, wherein the non-compliant container image is not compliant with a target computing environment;
program instructions to extract a one or more embeddings from the non-compliant container image;
program instructions to compare the one or more embeddings from the non-compliant container image to a plurality of one or more embeddings from an image catalog;
program instructions identify that a layer of the non-compliant container image violates at least one policy rules for the target computing environment;
program instructions to identify a similar image from the image catalog based on the comparison of layer embeddings from the non-compliant container image and the similar image;
program instructions to extract a one or more layer embeddings from at least one layer of the non-compliant container image;
program instructions to compare the one or more layer embeddings to a plurality of one or more layer embeddings for layers of images retrieved from the image catalog;
program instructions to replace 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
program instructions to deploy the similar image in the target computing environment.