US 12,443,401 B2
Hybrid approach to performing a lazy pull of container images
Giuseppe Scrivano, Milan (IT)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Jun. 28, 2023, as Appl. No. 18/343,458.
Application 18/343,458 is a continuation of application No. 17/220,850, filed on Apr. 1, 2021, granted, now 11,709,665.
Prior Publication US 2023/0342134 A1, Oct. 26, 2023
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 8/61 (2018.01); G06F 16/18 (2019.01)
CPC G06F 8/63 (2013.01) [G06F 16/1865 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
retrieving, by a processing device and a first file system in user space (FUSE), a plurality of files corresponding to an image file to build, in a mount point implemented in an operating system kernel, one or more base layers for running a container;
during the retrieving and while the one or more base layers are being built, receiving, by the processing device, from the container, one or more file requests, wherein the FUSE acts as a proxy between the container and the image file;
processing, by the processing device, using the FUSE, each of the one or more file requests by:
determining, by the processing device, whether the requested file is one of the plurality of files;
in response to determining that the requested file is one of the plurality of files, retrieving, by the processing device, based on whether the requested file has been retrieved by the FUSE, the requested file from the mount point or retrieving, by the processing device, the requested file from a registry server and writing, by the processing device, the requested file to the mount point; and
providing, by the processing device, the requested file to the container; and
in response to determining that all of the plurality of files have been retrieved or requested:
processing, by the processing device, any outstanding file requests; and
instructing, by the processing device, the mount point to run the container using the one or more base layers built in the mount point.