Docker container mirror image storage method and device, docker container mirror image pulling method and device and computer readable storage medium

A technology of image storage and computer, which is applied in the computer field to achieve the effect of improving the image loading speed and speeding up the indexing speed

Pending Publication Date: 2021-03-02
北京浪潮数据技术有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although there are various ways to reduce the size of the docker image as much as possible, it is still unavoidable that some scenarios require the use of large-volume images, such as machine learning

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Docker container mirror image storage method and device, docker container mirror image pulling method and device and computer readable storage medium
  • Docker container mirror image storage method and device, docker container mirror image pulling method and device and computer readable storage medium
  • Docker container mirror image storage method and device, docker container mirror image pulling method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0045] The embodiment of the present invention discloses a docker container image storage method, see figure 1 As shown, the method includes:

[0046] S11: Obtain entry information of the image.

[0047] Specifically, a mirror is created in units of entries during the production process. Therefore, a mirror includes multiple entries, and all the entries are combined to form a complete mirror. Therefore, the existing entry information in the mirror can be obta...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses docker container mirror image storage and pulling methods and devices and a computer readable storage medium. The docker container mirror image storage method comprises the steps of obtaining entry information of a mirror image; according to the entry information, dividing the mirror image by taking an entry as a unit to obtain a plurality of sub-mirror images; independently compressing each sub-mirror image to obtain a plurality of compressed sub-mirror images stored in a mirror image layer form; obtaining the size and offset of a block corresponding to each compressedsub-mirror image and metadata of each file to obtain an index file entry; and storing the plurality of compressed sub-images and the index file entry in the form of an image layer to obtain the imagelayer of the image. According to the method, the whole mirror image is divided into the plurality of sub-mirror images according to the entries and is independently compressed, so that part of the compressed sub-mirror images can be directly obtained without obtaining all the sub-mirror images at a time and setting index file entries, the index speed of the compressed sub-mirror images is increased, and a premise is created for increasing the mirror image loading speed.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a docker container image storage and pulling method, device and computer-readable storage medium. Background technique [0002] In the prior art, starting the container itself is very fast. But in most cases, starting a container requires first pulling the entire container image from a remote container repository and writing it to the local computer's disk. This causes a certain waste of computer resources. For small containers, this problem is rarely noticed. However, with larger containers, the pull operation quickly becomes the slowest part of starting the container. This is in contrast to starting a virtual machine on an Iaas platform (Iaas, Infrastructure as a Service, Infrastructure as a Service): Even if it is a virtual machine image of hundreds of GB, the virtual machine will start within seconds, because the virtual machine When the machine starts, it reads...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455H04L29/08
CPCG06F9/45558G06F2009/45562H04L67/1095
Inventor 张德波刘茂扬
Owner 北京浪潮数据技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products