Patent ID: 11880341
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 2:
3. A container image distribution apparatus, comprising:
one or more processors;
a memory storing instructions executable by the one or more processors;
wherein the one or more processors are configured to:
obtain required file information for generating a container image, and construct a complete image according to the required file information;
analyze the required file information to determine file information with a space occupation greater than a preset threshold;
install the file information with the space occupation greater than the preset threshold in a specified parent directory of the complete image;
determine the specified parent directory as a specified directory to be deleted of the complete image;
add a new layer based on the complete image, and replacing the specified directory to be deleted of the complete image with the new layer to obtain a new image;
compress and merge the new image by applying a Docker Squash compression mechanism to make layers in the new image being merged into one layer to obtain the compressed image;
obtain directory content of the specified directory to be deleted, and generate content to be mounted based on the directory content of the specified directory to be deleted; and
store the content to be mounted to a block device file system, add first mount points on the compressed image, and mount the compressed image to the block device file system through the first mount points, for automatic mounting when an image is activated, wherein the block device file system is a local disk.