CN109194725A - A kind of transmission method of mirror image, device, equipment and computer storage medium - Google Patents
A kind of transmission method of mirror image, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN109194725A CN109194725A CN201810939940.5A CN201810939940A CN109194725A CN 109194725 A CN109194725 A CN 109194725A CN 201810939940 A CN201810939940 A CN 201810939940A CN 109194725 A CN109194725 A CN 109194725A
- Authority
- CN
- China
- Prior art keywords
- layer
- mirror image
- unique identification
- basal layer
- basal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of transmission method of mirror image, device, equipment and computer storage medium, a mirror image is divided into basal layer and application layer according to execution function by this method, is separately transmitted in target environment.Layer adds unique identification based on, so that when transmitting a mirror image, if having existed the basal layer of the mirror image in target environment, then only need to transmit the application layer of the mirror image, and in the same mirror image, basal layer and application layer unique identification having the same can find the basal layer being already present in target environment using the unique identification of application layer, and the mirror image finally can be obtained in application layer and basal layer merging.It will be apparent that application layer is usually smaller, efficiency is higher in transmission process, also, identical basal layer only needs transmission primaries, substantially increases efficiency of transmission, and for memory space, stores without repetition, and then saved memory space.
Description
Technical field
The present invention relates to mirror image technology fields, more particularly to a kind of transmission method of mirror image, device, equipment and computer
Storage medium.
Background technique
With the continuous development of cloud computing, mainstream is had become to construct distributed system using micro services framework.Currently, exist
In the delivery process of micro services framework, container becomes optimum carrier.When being delivered using container, usually by micro services framework pair
The mirror image answered not only is contained as part, mirror image is delivered using itself, further comprise using required at runtime it is various according to
Rely environment.Therefore, mirror image (being primarily referred to as the size of mirror image here, size refers to shared memory space) is bigger than using itself
Very much, often reach several hundred M or even several G.
Since mirror image is excessive, transmission process is very time-consuming, and is easy to interrupt, therefore, in the prior art in order to reduce mirror
As shared memory space, usually retain and apply itself, and reduces to the greatest extent using relying on environment required for itself, such as grasp
The dependence environment of this occupied space very little of Alpine can be used as system.Although aforesaid way can substantially reduce mirror image institute
The space occupied improves efficiency of transmission, but a complete mirror image is caused to lack many dependence environment, is lost very much
Kit, it is extremely inconvenient in subsequent use process.Also, when transmitting many mirror images if necessary, aforesaid way still needs
By the essential dependence environment transmission primaries of each mirror image, the problem of transmitting required overlong time will also result in, and pass
It is finished into later, each mirror image also requires individually to store, and occupied memory space will necessarily increase accordingly.
It can be seen that how improving the efficiency of transmission and reducing the occupied memory space of mirror image is when transmitting mirror image
Those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of transmission method of mirror image, device, equipment and computer storage mediums, are used for
When transmitting mirror image, improves the efficiency of transmission and reduce the occupied memory space of mirror image.
In order to solve the above technical problems, the present invention provides a kind of transmission method of mirror image, comprising:
Mirror image is divided into basal layer and application layer according to function is executed, and generates unique mark of the basal layer for identification
Know;
It is packaged the basal layer, and adds the unique identification;
It is packaged the application layer, and adds the unique identification;
The application layer for adding the unique identification is transmitted to target environment;
Judgement includes that the basal layer of the unique identification whether there is in the target environment;
If it is, merging the application layer and the basal layer to obtain the mirror image according to the unique identification.
Preferably, the basal layer specifically includes operating system layer and operation Dependent Layer.
Preferably, described to be packaged the basal layer specifically: using the operating system layer and the operation Dependent Layer as
It is whole to be packaged.
Preferably, when needing to update the basal layer, further includes:
It is packaged new basal layer, and adds new unique identification;
The new basal layer is transmitted to the target environment;
The unique identification that the application layer is added is changed to the new unique identification;
Merge the application layer and the new basal layer to obtain new mirror image according to the new unique identification.
Preferably, it is applied particularly to Docker packaged offline scene.
Preferably, further includes:
Store the unique identification for the basal layer for including in the target environment.
Preferably, further includes:
Record the occupied memory space of the basal layer.
In order to solve the above technical problems, the present invention also provides a kind of transmitting devices of mirror image, comprising:
Generation unit for mirror image to be divided into basal layer and application layer according to execution function, and generates described for identification
The unique identification of basal layer;
First packaged unit for being packaged the basal layer, and adds the unique identification;
Second packaged unit for being packaged the application layer, and adds the unique identification;
Transmission unit, for the application layer for adding the unique identification to be transmitted to target environment;
Judging unit, for judge include the unique identification the basal layer whether there is in the target environment
In, if it is, triggering combining unit;
The combining unit, it is described for merging to obtain by the application layer and the basal layer according to the unique identification
Mirror image.
In order to solve the above technical problems, the present invention also provides a kind of transmission device of mirror image, including memory, for storing
Computer program;
Processor, the step of transmission method of mirror image as described above is realized when for executing the computer program.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable
Computer program is stored on storage medium, the computer program realizes mirror image as described above when being executed by processor
The step of transmission method.
One mirror image is divided into basal layer and answered by the transmission method of mirror image provided by the present invention first, in accordance with function is executed
With layer, so that the two is separately transmitted when importing in target environment.Since different mirror images has different application layers, but can
Energy basal layer having the same, layer adds unique identification based on, so that when transmitting a mirror image, if target environment
In have existed the basal layer of the mirror image, then only need to transmit the application layer of the mirror image, and in the same mirror image, basal layer
Therefore it can be found using the unique identification of application layer with application layer unique identification having the same and be already present on target
Finally the mirror image can be obtained in application layer and basal layer merging by the basal layer in environment.It will be apparent that application layer is usually smaller,
Efficiency is higher in transmission process, also, different mirror images if there is identical basal layer, then these mirror images are in transmission process
Transmission primaries basal layer is only needed, substantially increases efficiency of transmission, and for memory space, is deposited without repetition
Storage, and then saved memory space.
It is and above-mentioned in addition, the transmitting device of mirror image provided by the present invention, storage medium and computer readable storage medium
Method is corresponding, therefore equally has above-mentioned beneficial effect.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the transmission method of mirror image provided in an embodiment of the present invention;
Fig. 2 is the seperated schematic diagram of basal layer and application layer under a kind of target environment provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the transmission method of another mirror image provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of the transmitting device of mirror image provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other
Embodiment belongs to the scope of the present invention.
Core of the invention is to provide transmission method, device, equipment and the computer storage medium of a kind of mirror image, is used for
When transmitting mirror image, improves the efficiency of transmission and reduce the occupied memory space of mirror image.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the transmission method of mirror image provided in an embodiment of the present invention.This method, which is embodied within, answers
With the scene delivered offline by way of container.Here the type of container is not construed as limiting, but usually used container is
Docker container.Docker container be one open source application container engine, allow developer can be packaged they application and
Packet is relied on into a transplantable container, is then published on the Linux machine of any prevalence, also may be implemented to virtualize.
Container is not have any interface between each other using sandbox mechanism completely.Container is normally within application server, by answering
It is responsible for loading and is safeguarded with server.One container can be only present within an application server, and an application server can
To establish and safeguard multiple containers.As shown in Figure 1, this method comprises:
S10: mirror image is divided into basal layer and application layer according to function is executed, and generates unique mark of basal layer for identification
Know.
Under normal conditions, technical staff makes in layer in mirror image manufacturing process, and which can be marked off
Layer, which is used to provide using itself, relies on environment, which layer is using itself.It therefore, is exactly according to mirror image in this step
Mirror image is divided into basal layer and application layer by the difference of the execution function of each layer, and basal layer here is exactly to provide using itself
The layer of environment is relied on, application layer is exactly application program itself.In a specific embodiment, basal layer specifically includes operation system
System layer and operation Dependent Layer.Here operating system layer mainly provides the application framework of a kind of " clean ", and runs Dependent Layer tool
Body is the environment relied on when operation, such as special dependence environment is needed for certain game, in operational process, is transported
Row Dependent Layer is just to provide these and runs relied on environment.To those skilled in the art, how mirror image to be divided into
Basal layer and application layer are well known technologies, and the present embodiment no longer repeats one by one.
In addition, being also not construed as limiting in the present embodiment for the type of mirror image, the mirror image of any application, such as Java can be
The mirror image of application.
S11: it is packaged basal layer, and adds unique identification.
It should be noted that may include identical basal layer, such as mirror image A and mirror in the mirror image of different applications
It is two different applications as B is although corresponding, but the two basal layer having the same, only application layer is different.This
In step, basal layer is packaged, and add a unique identification, this unique identification be in order to identify the basal layer, that is,
It says, identical basal layer unique identification having the same, different basal layers has different unique identifications.It is unique by adding
Mark can quickly determine whether two basal layers are identical basal layers.
S12: it is packaged application layer, and adds unique identification.
It should be noted that in step S11 and S12, if basal layer and application layer are derived from the same mirror image,
The corresponding unique identification of the two is necessarily identical, but if basal layer and application layer are not derived from the same mirror image, that
Unique identification added by application layer is possible to be different with the unique identification in S11 in S12.Why this is generated
Phenomenon is to be merely given as the process that a complete mirror image transmits because in flow chart shown in FIG. 1, but the step being related to
It suddenly is not that will be used in each mirror image transmission process, and the sequence between step can also be with appropriate adjustment.For example, first
When secondary progress mirror image transmission, and when only one mirror image, each step in Fig. 1 will be executed one time, and carry out for the second time
When mirror image transmits, if the corresponding basal layer of the mirror image is already present in target environment, do not need again to pass the basal layer
Transport to target environment.
S13: the application layer for adding unique identification is transmitted to target environment.
It should be noted that application layer, which is one, applies " core ", and it is the fundamental difference between different application, it is therefore, right
For each mirror image, corresponding application layer all will be individually transmitted in target environment.It is answered since application layer does not include
The environment relied on itself, therefore, application layer are almost identical as the size of application itself, so the efficiency transmitted offline is very
It is high.
S14: judgement includes that the basal layer of unique identification whether there is in target environment, if it is, into S15.
It is understood that transmitting mirror image for the first time since the corresponding application scenarios of step S14 may be one, it is also possible to no
It is therefore, in target environment to be possible to have existed basal layer, it is either one or more, why to carry out
Judgement, is because if having existed for the basal layer with current application layer unique identification having the same in target environment, then
Illustrate that current application layer and the basal layer group can make up a mirror image, and this mirror image is also exactly the mirror image of step S10 meaning.
It for above situation, does not need that basal layer is transmitted to target environment again, therefore, is equivalent to current mirror image and only transmits
One application layer, is greatly saved transmission time, improves efficiency of transmission.Meanwhile it is multiple with same basic when facing
Layer mirror image transmission when, it is only necessary to store a basal layer, do not need by the same basal layer store several times, because
This, can save memory space, reduce redundancy.
It should be noted that if the judging result of step S14 be it is no, still need to transmit packed basal layer
To target environment, in Fig. 1 the step for, is not shown.
S15: merge application layer and basal layer to obtain mirror image according to unique identification.
In target environment, if an application layer and a basal layer unique identification having the same, show the two
It is laminated and a complete mirror image can be obtained later.
Fig. 2 is the seperated schematic diagram of basal layer and application layer under a kind of target environment provided in an embodiment of the present invention.Such as Fig. 2
It is shown, it is corresponding there are two mirror image, be mirror image A and mirror image B respectively, wherein mirror image A by application layer A (unique identification BID:
12345678) and basal layer (unique identification BID:12345678) constitute, mirror image B by application layer B (unique identification BID:
12345678) it is constituted with basal layer (unique identification BID:12345678), due to mirror image A and mirror image B unique mark having the same
Know (BID:12345678), and there are the identical basal layers of the unique identification in target environment, therefore, in transmission mirror image A and mirror
When as B, it is only necessary to respective application layer is transmitted respectively, and basal layer only needs transmission primaries.
In order to more save the time, in specific implementation, if not mirror image transmission is carried out for the first time, i.e., in target environment
There is a basal layer, then when second of progress mirror image transmission, step can be directly entered after executing the step S10
Rapid S12 if NO, then executes step S11 when going to step S14 again, after then executing the step S11, by the base
Plinth layer is transmitted to target environment, is equivalent in target environment at this time and has contained the basal layer, then executing step S15 again i.e.
It can.
One mirror image is divided into basal layer and answered by the transmission method of mirror image provided in this embodiment first, in accordance with function is executed
With layer, so that the two is separately transmitted when importing in target environment.Since different mirror images has different application layers, but can
Energy basal layer having the same, layer adds unique identification based on, so that when transmitting a mirror image, if target environment
In have existed the basal layer of the mirror image, then only need to transmit the application layer of the mirror image, and in the same mirror image, basal layer
Therefore it can be found using the unique identification of application layer with application layer unique identification having the same and be already present on target
Finally the mirror image can be obtained in application layer and basal layer merging by the basal layer in environment.It will be apparent that application layer is usually smaller,
Efficiency is higher in transmission process, also, different mirror images if there is identical basal layer, then these mirror images are in transmission process
Transmission primaries basal layer is only needed, substantially increases efficiency of transmission, and for memory space, is deposited without repetition
Storage, and then saved memory space.
On the basis of the above embodiments, basal layer specifically includes operating system layer and operation Dependent Layer.
It, can also be with it is understood that mirror image can be divided into two big layers, i.e. basal layer and application layer in specific implementation
Operating system layer and operation Dependent Layer are further subdivided into the present embodiment, then by basal layer.Hereinbefore mention, it is different
Mirror image may basal layer having the same, if but basal layer without subdivision, two different mirror images are having the same
The probability of basal layer will reduce, and in fact, many different mirror image operating system layers having the same, and due to operation according to
Rely layer different, causes basal layer different, therefore, basal layer is divided into above-mentioned two layers, advantageously reduces the different probability of basal layer.
It is understood that on the basis of example 1, corresponding step will occur if basal layer is divided into above-mentioned two layers
Variation, but this variation is adaptive change, not contradiction.One of specific embodiment is as follows:
Mirror image is divided into basal layer and application layer according to function is executed, and generates the unique identification of basal layer for identification;
Wherein, basal layer specifically includes operating system layer and operation Dependent Layer;
Packaging operation system layer and operation Dependent Layer respectively, and unique identification is added respectively;
It is packaged application layer, and adds unique identification;
The application layer for adding unique identification is transmitted to target environment;
Judgement includes that the basal layer of unique identification whether there is in target environment;
If it is, merging application layer and basal layer to obtain mirror image according to unique identification;
If it is not, then the operating system layer that judgement includes unique identification whether there is in target environment;
If it is, the operation Dependent Layer for adding unique identification is transmitted to target environment, and will be answered according to unique identification
Merge to obtain mirror image with layer, operating system layer and operation Dependent Layer;
If it is not, then the operating system layer of the operation Dependent Layer for adding unique identification and addition unique identification is transmitted to
Target environment, and merge application layer, operating system layer and operation Dependent Layer to obtain mirror image according to unique identification.
It should be noted that if it is judged that including that the basal layer of unique identification is not present in target ring in above-mentioned steps
In border, then judgement includes that the operating system layer of unique identification whether there is in target environment, may be used also in other embodiments
With first judge include unique identification operation Dependent Layer whether there is in target environment, the two steps can be interchanged.
On the basis of the above embodiments, preferably embodiment is packaged basal layer specifically: by operating system layer
It is packaged as a whole with operation Dependent Layer.
Although referring to the advantages of basal layer is divided into operating system layer and operation Dependent Layer in above-described embodiment,
Be still to be packaged operating system layer and operation Dependent Layer as a whole in specific implementation, in this way can to avoid transmission process and
Merging process it is cumbersome.Only basal layer is divided into above-mentioned two layers, can be convenient subsequent use.
Fig. 3 is the flow chart of the transmission method of another mirror image provided in an embodiment of the present invention.In the base of above-described embodiment
On plinth, preferably embodiment, when needing to update basal layer, further includes:
S30: being packaged new basal layer, and adds new unique identification.
S31: new basal layer is transmitted to target environment.
S32: the unique identification that application layer is added is changed to new unique identification.
S33: merge application layer and new basal layer to obtain new mirror image according to new unique identification.
In specific implementation, it frequently encounters and needs the case where updating basal layer, using method provided by the invention, it is only necessary to
Updating unique identification and basal layer inherently can be with it is not necessary that by entire mirror image, again therefore transmission primaries substantially increase update mirror
The speed of picture.
Preferably embodiment, further includes:
The unique identification for the basal layer for including in storage target environment.
By storing the unique identification of basal layer, so that can quickly determine in target environment is when carrying out step S14
No there are corresponding basal layers, determine whether to be needed basal layer without checking the unique identification of each basal layer.
Position and format as storage can as the case may be depending on, this embodiment is not limited.
Preferably embodiment, further includes: the record occupied memory space of basal layer.Pass through record, Neng Goufang
Just the occupied memory space of the corresponding basal layer of each unique identification is counted.
In the above-described embodiments, the transmission method of mirror image is described in detail, the present invention also provides the biographies of mirror image
Defeated device and the corresponding embodiment of equipment.It should be noted that device part is the angle description based on functional module, equipment portion
Dividing is hardware based angle description.
Fig. 4 is a kind of structure chart of the transmitting device of mirror image provided in an embodiment of the present invention.As shown in Figure 1, comprising:
Generation unit 10 for mirror image to be divided into basal layer and application layer according to execution function, and generates base for identification
The unique identification of plinth layer;
First packaged unit 11, for being packaged basal layer, and adds unique identification;
Second packaged unit 12, for being packaged application layer, and adds unique identification;
Transmission unit 13, for the application layer for adding unique identification to be transmitted to target environment;
Judging unit 14, for judge include unique identification basal layer whether there is in target environment, if so,
Then trigger combining unit 15;
Combining unit 15, for merging application layer and basal layer to obtain mirror image according to unique identification.
Since the embodiment of device part is corresponded to each other with the embodiment of method part, the embodiment of device part is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
One mirror image is divided into basal layer and answered by the transmitting device of mirror image provided in this embodiment first, in accordance with function is executed
With layer, so that the two is separately transmitted when importing in target environment.Since different mirror images has different application layers, but can
Energy basal layer having the same, layer adds unique identification based on, so that when transmitting a mirror image, if target environment
In have existed the basal layer of the mirror image, then only need to transmit the application layer of the mirror image, and in the same mirror image, basal layer
Therefore it can be found using the unique identification of application layer with application layer unique identification having the same and be already present on target
Finally the mirror image can be obtained in application layer and basal layer merging by the basal layer in environment.It will be apparent that application layer is usually smaller,
Efficiency is higher in transmission process, also, different mirror images if there is identical basal layer, then these mirror images are in transmission process
Transmission primaries basal layer is only needed, substantially increases efficiency of transmission, and for memory space, is deposited without repetition
Storage, and then saved memory space.
A kind of transmission device of mirror image provided by the embodiment of the present invention, including memory, for storing computer program;
Processor realizes the step of the transmission method of the mirror image as described in above-described embodiment when for executing computer program
Suddenly.
Since the embodiment of device part is corresponded to each other with the embodiment of method part, the embodiment of device part is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.In some embodiments of the invention, processor and memory
It can be connected by bus or other means.
The transmission device of mirror image provided in this embodiment, including memory and processor, processor is in executing memory
When the computer program of storage, it is able to carry out following steps: one mirror image being divided into basal layer and answered first, in accordance with function is executed
With layer, so that the two is separately transmitted when importing in target environment.Since different mirror images has different application layers, but can
Energy basal layer having the same, layer adds unique identification based on, so that when transmitting a mirror image, if target environment
In have existed the basal layer of the mirror image, then only need to transmit the application layer of the mirror image, and in the same mirror image, basal layer
Therefore it can be found using the unique identification of application layer with application layer unique identification having the same and be already present on target
Finally the mirror image can be obtained in application layer and basal layer merging by the basal layer in environment.It will be apparent that application layer is usually smaller,
Efficiency is higher in transmission process, also, different mirror images if there is identical basal layer, then these mirror images are in transmission process
Transmission primaries basal layer is only needed, substantially increases efficiency of transmission, and for memory space, is deposited without repetition
Storage, and then saved memory space.
Finally, the embodiment of the present invention also provides a kind of computer readable storage medium, deposited on computer readable storage medium
The step of containing computer program, the transmission method of mirror image as described above realized when computer program is executed by processor.
It is understood that if the method in above-described embodiment is realized in the form of SFU software functional unit and as independence
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention
Technical solution substantially all or part of the part that contributes to existing technology or the technical solution can be in other words
It is expressed in the form of software products, which is stored in a storage medium, and it is each to execute the present invention
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk
Etc. the various media that can store program code.
Since the embodiment of device part is corresponded to each other with the embodiment of method part, the embodiment of device part is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Computer readable storage medium provided in this embodiment, is stored with computer program, and processor is executing the calculating
When machine program, it is able to carry out following steps: one mirror image being divided into basal layer and application layer first, in accordance with function is executed, so that
When importing in target environment, the two is separately transmitted.Since different mirror images has different application layers, but may be having the same
Basal layer, layer adds unique identification based on, so that when transmitting a mirror image, if having existed this in target environment
The basal layer of mirror image then only needs to transmit the application layer of the mirror image, and in the same mirror image, basal layer and application layer have
Therefore identical unique identification can find the basis being already present in target environment using the unique identification of application layer
Finally the mirror image can be obtained in application layer and basal layer merging by layer.It will be apparent that application layer is usually smaller, in transmission process
Efficiency is higher, also, different mirror images if there is identical basal layer, then these mirror images only need to transmit one in transmission process
Secondary basal layer substantially increases efficiency of transmission, and for memory space, stores without repetition, and then saves
Memory space.
The transmission method of mirror image provided by the present invention, device, equipment and computer storage medium have been carried out in detail above
It is thin to introduce.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, also
Can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the protection scope of the claims in the present invention
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of transmission method of mirror image characterized by comprising
Mirror image is divided into basal layer and application layer according to function is executed, and generates the unique identification of the basal layer for identification;
It is packaged the basal layer, and adds the unique identification;
It is packaged the application layer, and adds the unique identification;
The application layer for adding the unique identification is transmitted to target environment;
Judgement includes that the basal layer of the unique identification whether there is in the target environment;
If it is, merging the application layer and the basal layer to obtain the mirror image according to the unique identification.
2. the transmission method of mirror image according to claim 1, which is characterized in that the basal layer specifically includes operating system
Layer and operation Dependent Layer.
3. the transmission method of mirror image according to claim 2, which is characterized in that described to be packaged the basal layer specifically:
The operating system layer and the operation Dependent Layer are packaged as a whole.
4. the transmission method of mirror image according to claim 1 to 3, which is characterized in that when needing to update the base
When plinth layer, further includes:
It is packaged new basal layer, and adds new unique identification;
The new basal layer is transmitted to the target environment;
The unique identification that the application layer is added is changed to the new unique identification;
Merge the application layer and the new basal layer to obtain new mirror image according to the new unique identification.
5. the transmission method of mirror image according to claim 1, which is characterized in that be applied particularly to Docker packaged offline field
Scape.
6. the transmission method of mirror image according to claim 1, which is characterized in that further include:
Store the unique identification for the basal layer for including in the target environment.
7. the transmission method of mirror image according to claim 6, which is characterized in that further include:
Record the occupied memory space of the basal layer.
8. a kind of transmitting device of mirror image characterized by comprising
Generation unit for mirror image to be divided into basal layer and application layer according to execution function, and generates the basis for identification
The unique identification of layer;
First packaged unit for being packaged the basal layer, and adds the unique identification;
Second packaged unit for being packaged the application layer, and adds the unique identification;
Transmission unit, for the application layer for adding the unique identification to be transmitted to target environment;
Judging unit, for judge include the unique identification the basal layer whether there is in the target environment,
If it is, triggering combining unit;
The combining unit, for merging the application layer and the basal layer to obtain the mirror according to the unique identification
Picture.
9. a kind of transmission device of mirror image, which is characterized in that including memory, for storing computer program;
Processor realizes the transmission side of mirror image as described in any one of claim 1 to 7 when for executing the computer program
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the computer program realize the transmission method of mirror image as described in any one of claim 1 to 7 when being executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810939940.5A CN109194725B (en) | 2018-08-17 | 2018-08-17 | A kind of transmission method of mirror image, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810939940.5A CN109194725B (en) | 2018-08-17 | 2018-08-17 | A kind of transmission method of mirror image, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109194725A true CN109194725A (en) | 2019-01-11 |
CN109194725B CN109194725B (en) | 2019-07-09 |
Family
ID=64918179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810939940.5A Active CN109194725B (en) | 2018-08-17 | 2018-08-17 | A kind of transmission method of mirror image, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194725B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153588A (en) * | 2017-05-12 | 2017-09-12 | 成都优孚达信息技术有限公司 | data encoding storage method |
CN206892497U (en) * | 2017-07-19 | 2018-01-16 | 信利半导体有限公司 | A kind of new big plate liquid crystal display panel |
CN107797806A (en) * | 2016-08-29 | 2018-03-13 | 北京雪球信息科技有限公司 | A kind of dispositions method of program |
CN107819802A (en) * | 2016-09-13 | 2018-03-20 | 华为软件技术有限公司 | A kind of mirror image acquisition methods, node device and server in node cluster |
CN108170514A (en) * | 2017-12-19 | 2018-06-15 | 中国科学院声学研究所 | A kind of container operation method and device |
-
2018
- 2018-08-17 CN CN201810939940.5A patent/CN109194725B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107797806A (en) * | 2016-08-29 | 2018-03-13 | 北京雪球信息科技有限公司 | A kind of dispositions method of program |
CN107819802A (en) * | 2016-09-13 | 2018-03-20 | 华为软件技术有限公司 | A kind of mirror image acquisition methods, node device and server in node cluster |
CN107153588A (en) * | 2017-05-12 | 2017-09-12 | 成都优孚达信息技术有限公司 | data encoding storage method |
CN206892497U (en) * | 2017-07-19 | 2018-01-16 | 信利半导体有限公司 | A kind of new big plate liquid crystal display panel |
CN108170514A (en) * | 2017-12-19 | 2018-06-15 | 中国科学院声学研究所 | A kind of container operation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109194725B (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107733977A (en) | A kind of cluster management method and device based on Docker | |
US10291706B1 (en) | Container image distribution acceleration | |
JP2019523501A (en) | Risk identification method, risk identification device, cloud risk identification device and system | |
CN104462370A (en) | Distributed task scheduling system and method | |
US10110456B2 (en) | Scalable software monitoring infrastructure, using parallel task queuing, to operate in elastic cloud environments | |
CN105450618A (en) | Operation method and operation system of big data process through API (Application Programming Interface) server | |
CN103927216A (en) | Method And System For Managing Virtual Devices | |
CN109582452A (en) | A kind of container dispatching method, dispatching device and electronic equipment | |
CN108182281A (en) | Data processing control method, device, server and medium based on streaming computing | |
CN103701867A (en) | Method, system and central server for processing call requests | |
CN107844878A (en) | Order allocation method and device | |
CN105210324B (en) | Strategy and charging rule functions virtual method, apparatus and system | |
CN113608751B (en) | Operation method, device and equipment of reasoning service platform and storage medium | |
CN109032982A (en) | A kind of data processing method, device, equipment, system, FPGA board and combinations thereof | |
CN110544159B (en) | Map information processing method and device, readable storage medium and electronic equipment | |
CN109194725B (en) | A kind of transmission method of mirror image, device, equipment and computer storage medium | |
CN110493736A (en) | Note transmission method, device and storage medium | |
CN104270287A (en) | Message disorder detecting method and device | |
CN110187985A (en) | A kind of communication means, system and device | |
CN103685084B (en) | A kind of method generating Frame and device | |
WO2018068655A1 (en) | License management method and system | |
CN106325981A (en) | Method and device for task scheduling | |
CN105577707B (en) | A kind of remote invocation method and equipment | |
CN110175808A (en) | A kind of order management, querying method, device, equipment and medium | |
CN112905223B (en) | Upgrade package generation method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |