US 12,332,847 B1
Dynamically removing duplicate container image layers
Xiao Ling Chen, Beijing (CN); Si Yu Chen, Beijing (CN); Heng Wang, Beijing (CN); and Bo Liu, Shanghai (CN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Jul. 31, 2024, as Appl. No. 18/789,943.
Int. Cl. G06F 16/174 (2019.01); G06F 3/06 (2006.01)
CPC G06F 16/1748 (2019.01) [G06F 3/0608 (2013.01); G06F 3/0641 (2013.01); G06F 3/067 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method for shared container image layer removal, the computer-implemented method comprising:
determining, by a host node, whether layer metadata corresponding to a selected layer of a container image includes a referenced image identifier corresponding to a reference shared layer of an other container image stored in local storage based on an analysis of the layer metadata;
responsive to the host node determining that the layer metadata corresponding to the selected layer does include the referenced image identifier corresponding to the reference shared layer of the other container image stored in the local storage based on the analysis of the layer metadata, determining, by the host node, that the selected layer of the container image is a duplicate shared layer having same content as the reference shared layer; and
removing, by the host node, the container image containing the selected layer that is the duplicate shared layer from the local storage to decrease space utilization of the local storage and thereby increase performance.