CN105930230A - Multilayer mirror image management method - Google Patents
Multilayer mirror image management method Download PDFInfo
- Publication number
- CN105930230A CN105930230A CN201610244793.0A CN201610244793A CN105930230A CN 105930230 A CN105930230 A CN 105930230A CN 201610244793 A CN201610244793 A CN 201610244793A CN 105930230 A CN105930230 A CN 105930230A
- Authority
- CN
- China
- Prior art keywords
- image file
- image
- instrument
- file
- mirror image
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/4492—Inheritance
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a multilayer mirror image management method and system. The method comprises the steps of packaging at least one code file to generate at least one code mirror image file; and based on a system mirror image file and a tool mirror image file generated by pre-packaging, creating an inheritance relationship between each code mirror image file and the tool mirror image file for enabling each code mirror image file to inherit the tool mirror image file, wherein the tool mirror image file inherits the system mirror image file. According to the method and system, an operation system and a business tool are pre-packaged to generate the system mirror image file and the tool mirror image file respectively, so that only codes need to be packaged to generate the code mirror image files subsequently and the mirror image creation time is shortened; and the inheritance relationship exists between the system mirror image file or the tool mirror image file and the code mirror image file, so that a user only needs to upload or download the code mirror image file during uploading or downloading, and the user experience is improved.
Description
Method field
The present invention relates to docker container mirror image technology field, particularly relate to the manager of a kind of many layer mirror picture
Method.
Background technology
In prior art, when creating image file, it is common that by operating system, business tool (code
Rely on environment) and code be packed into an image file, after image file completes, need by
This image file is saved in mirror image warehouse, if certain server wants uses image file to create docker container,
Then need to download image file from mirror image warehouse.
Traditional mirror image management method has following defects that
1. (include operating system, the business tool (ring that code relies on owing to the content of image file is too many
Border) and code), cause image file Production Time long;
2. very big due to the capacity of image file, by image file push to mirror image warehouse and from mirror image
During warehouse pull image file, cause time-consuming long.
3. image file is big, troublesome maintenance;
4. when breaking down, malfunction elimination difficulty.
Summary of the invention
It is an object of the invention to provide the construction method of a kind of many layer mirror picture, realize image file make,
Upload and download efficiency.
According to an aspect of the invention, it is provided the management method of a kind of many layer mirror picture, described method bag
Include: the packing of at least one code file is generated at least one boot image file;Based on life of packing in advance
The system image file become and instrument image file, create each described boot image file and described work
The inheritance of tool image file so that this instrument image file inherited by each described boot image file;
Wherein, described instrument image file inheritance system image file.
Wherein, before the step of described generation boot image file, operating system, business tool are divided
Da Bao not generate system image file and instrument image file;At described system image file and instrument mirror image
Inheritance is created so that described instrument image file inheritance system image file between file, wherein,
Business tool is the environment that code relies on.
Wherein, when uploading image file to mirror image warehouse, by least one boot image file described
Pass to mirror image warehouse.
Wherein, described by least one boot image files passe to the step in mirror image warehouse before, also
Including: in advance system image file and instrument image file are uploaded to mirror image warehouse.
Wherein, when downloading image file, by least one boot image file download described to local.
Wherein, described by least one boot image file download described to local step before, also
Including: in advance by locally downloading to system image file and instrument image file.
According to another aspect of the present invention, it is provided that the management system of a kind of many layer mirror picture, described system
Including: boot image generation module, for the packing of at least one code file is generated at least one code
Image file;Inheritance creation module, for the system image file and work that generate based on packing in advance
Tool image file, creates the inheritance of each described boot image file and described instrument image file,
Each described boot image file is made to inherit this instrument image file;Described instrument image file is inherited
System image file.
Wherein, described system also includes: system image generation module and instrument mirror image generation module;System
Mirror image generation module, is used for before generating boot image file, generation system mirror of operating system being packed
As file;Instrument mirror image generation module, for, before generating boot image file, beating business tool
Bag Core Generator image file;Described inheritance creation module be additionally operable to described system image file with
Inheritance is created so that described instrument image file inheritance system image file between instrument image file,
Wherein, business tool is the environment that code relies on.
Wherein, described system also includes: transmission module on mirror image, for when uploading mirror image literary composition to mirror image warehouse
During part, by least one boot image files passe described to mirror image warehouse.
Wherein, on mirror image transmission module by least one boot image files passe described to mirror image warehouse it
Before, on mirror image, system image file and instrument image file are uploaded to mirror image warehouse by transmission module in advance.
Wherein, described system also includes: image download module, for when downloading image file, by institute
State at least one boot image file download to local.
Wherein, before image download module is by least one boot image file download described to this locality,
Image download module is in advance by locally downloading to system image file and instrument image file.
The present invention is by advance by operating system, packed by business tool generation system image file and instrument
Image file, user or application service provider have only to that code carries out packing and generate boot image literary composition
Part, saves the Production Time of image file;Due to system image file, instrument image file with
There is inheritance between boot image file, user is when uploading or download image file, it is only necessary to
Boot image file is uploaded or downloaded, when saving the making uploading and downloading image file
Between, improve Consumer's Experience.When breaking down, it is only necessary to boot image file is carried out malfunction elimination
, save the malfunction elimination time, and reduce malfunction elimination degree of difficulty.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the management method of the many layer mirror picture according to the present invention;
Fig. 2 is schematic flow sheet according to an embodiment of the present invention;
Fig. 3 is the structural representation of the management system of the many layer mirror picture according to the present invention.
Detailed description of the invention
For making the purpose of the present invention, method scheme and advantage of greater clarity, below in conjunction with being embodied as
Mode referring to the drawings, the present invention is described in more detail.It should be understood that these describe simply example
Property, and it is not intended to limit the scope of the present invention.Additionally, in the following description, eliminate known knot
Structure and the description of method, to avoid unnecessarily obscuring idea of the invention.
In the present invention, it is generally the case that application service provider can be in advance by raw for some application service packing
It is mirrored into file, and the image file completed in advance is uploaded to high in the clouds, when user needs mirror image literary composition
During part, it is only necessary to download from high in the clouds.
In prior art, when making image file, operating system, business tool and code can be packed
Become an image file, cause image file Production Time long, the longest;Uploading to high in the clouds and downloading
During image file, image file is caused to be uploaded long with download time.Further, when breaking down, it is difficult to
Carry out malfunction elimination, add the malfunction elimination time, and add malfunction elimination degree of difficulty.
Fig. 1 is the schematic flow sheet of the management method of the many layer mirror picture according to the present invention.
As it is shown in figure 1, the management method of the many layer mirror picture of the present invention, described method comprises the steps:
Step S10, generates at least one boot image file by the packing of at least one code file.
In this step, when making boot image file, by one or more code file a pair
One packing generates one or more boot image file.
Step S20, the system image file and instrument image file generated based on packing in advance, create every
One described boot image file and the inheritance of described instrument image file so that each described generation
Code image file inherits this instrument image file;Wherein, described instrument image file inheritance system mirror image literary composition
Part.
In this step, based on the most packed system image file and instrument image file, create each
Individual boot image file and the inheritance of described instrument image file so that at least one code mirror described
Inherit described instrument image file as file simultaneously.Wherein, described instrument image file inheritance system mirror image
File, described business tool is the environment that code relies on.
Fig. 2 is schematic flow sheet according to an embodiment of the present invention.
As in figure 2 it is shown, described by least one boot image literary composition of at least one code file packing generation
Before the step of part, also include:
Step S100, operating system, business tool are packed respectively generation system image file and instrument mirror
As file.
In this step, operating system, business tool are packed into respectively system image file and instrument mirror
As file.
In this step, operating system, business tool are packed into respectively system image file and instrument mirror
As the execution sequence of file is not unique, can perform successively to perform simultaneously.
The present invention is by advance by operating system, packed by business tool generation system image file and instrument
Image file, in subsequent process, user or application service provider have only to pack code
Generate boot image file, save the Production Time of image file.
Step S200, creates the inheritance between described system image file and instrument image file, makes
Obtain described instrument image file inheritance system image file.
In this step, after system image file and instrument image file have been packed, create described system
Inheritance between image file and instrument image file so that described instrument image file inheritance system
Image file.
Wherein, when uploading image file to mirror image warehouse, by least one boot image file described
Pass to mirror image warehouse.
Wherein, described by least one boot image files passe to the step in mirror image warehouse before, also
Including: in advance system image file and instrument image file are uploaded to mirror image warehouse.
Wherein, when downloading image file, by least one boot image file download described to local.
Wherein, described by least one boot image file download described to local step before, also
Including: in advance by locally downloading to system image file and instrument image file.
In prior art, owing to operating system, business tool and code are packaged into an image file,
When uploading and download, the longest.The present invention passes through continuing between system image file and instrument image file
Hold the inheritance between relation and instrument image file and boot image file, upload follow-up or
During downloading image file, it is only necessary to boot image file is uploaded and downloaded, reduce
The uploading and download time of image file, it is possible to increase Consumer's Experience.
As it has been described above, describe the management method of the many layer mirror picture of the present invention in detail, the present invention is by advance
By operating system, business tool packing is generated system image file and instrument image file, user or
Application service provider has only to that code carries out packing and generates boot image file, saves mirror image
The Production Time of file;Owing to depositing between system image file, instrument image file and boot image file
In inheritance, user is when uploading or download image file, it is only necessary to carry out boot image file
Upload or download, save the Production Time uploading and downloading image file, improve Consumer's Experience.
When breaking down, it is only necessary to boot image file is carried out malfunction elimination, saves malfunction elimination
Time, and reduce malfunction elimination degree of difficulty.
Fig. 3 is the structural representation of the management system of the many layer mirror picture according to the present invention.
As it is shown on figure 3, the management system of the many layer mirror picture of the present invention includes: boot image generation module 10
With inheritance creation module 20.
Boot image generation module 10 is for generating at least one code by the packing of at least one code file
Image file.
The specific descriptions of this module see abovementioned steps S10.
Inheritance creation module 20 is connected with described boot image generation module 10, for based in advance
One system image file of packing generation and an instrument image file, create each described boot image file
Create inheritance so that this instrument image file inherited by each described boot image file.Wherein, institute
State instrument image file inheritance system image file.
The specific descriptions of this module see abovementioned steps S20.
Further, described system also includes: system image generation module 30 and instrument mirror image generation module
40。
System image generation module 30 is connected with described inheritance creation module 20, for generating generation
Before code image file, operating system packing is generated system image file.
The specific descriptions of this module see abovementioned steps S100.
Instrument mirror image generation module 40 is connected with described inheritance creation module 20, for generating generation
Before code image file, Core Generator image file of being packed by business tool, wherein, business tool is generation
The environment that code relies on.
The specific descriptions of this module see abovementioned steps S100.
Described inheritance creation module 20 is additionally operable at described system image file and instrument image file
Between create inheritance so that described instrument image file inheritance system image file.
The specific descriptions of this module see abovementioned steps S200.
Further, described system also includes:
On mirror image, transmission module 50 is connected with described boot image generation module 10, for mirror image warehouse
When uploading system image file, instrument image file and boot image file, by least one code described
Image file uploads to mirror image warehouse.
On mirror image transmission module 50 the most respectively with system image generation module 30, instrument mirror image generation module 40
Connect, for transmission module 50 on mirror image by least one boot image files passe described to mirror image warehouse
Before, it is additionally operable in advance system image file and instrument image file be uploaded to mirror image warehouse.
Further, described system also includes:
Image download module 60, for when downloading image file, by least one boot image literary composition described
Part is locally downloading.
Wherein, in image download module 60 by least one boot image file download described to this locality
Before, image download module 60 is in advance by locally downloading to system image file and instrument image file.
As it has been described above, describe the management system of the many layer mirror picture of the present invention in detail, the present invention is by advance
By operating system, business tool packing is generated system image file and instrument image file, user or
Application service provider has only to that code carries out packing and generates boot image file, saves mirror image
The Production Time of file;Owing to depositing between system image file, instrument image file and boot image file
In inheritance, user is when uploading or download image file, it is only necessary to carry out boot image file
Upload or download, save the Production Time uploading and downloading image file, improve Consumer's Experience.
When breaking down, it is only necessary to boot image file is carried out malfunction elimination, saves malfunction elimination
Time, and reduce malfunction elimination degree of difficulty.
It should be appreciated that the above-mentioned detailed description of the invention of the present invention is used only for exemplary illustration or explanation
The principle of the present invention, and be not construed as limiting the invention.Therefore, without departing from the present invention spirit and
Any modification, equivalent substitution and improvement etc. done in the case of scope, should be included in the guarantor of the present invention
Within the scope of protecting.Additionally, claims of the present invention be intended to fall into scope and
Whole in the equivalents on border or this scope and border change and modifications example.
Claims (12)
1. the management method of a many layer mirror picture, it is characterised in that described method includes:
The packing of at least one code file is generated at least one boot image file;
The system image file and instrument image file generated based on packing in advance, creates described in each
Inheritance between boot image file and described instrument image file so that each described code
Image file inherits this instrument image file;
Wherein, described instrument image file inheritance system image file.
Management method the most according to claim 1, wherein, at described generation boot image literary composition
Before the step of part, also include:
Operating system, business tool are packed respectively and generates system image file and instrument image file;
Create the inheritance between described system image file and instrument image file so that described work
Tool image file inheritance system image file;
Wherein, described business tool is the environment that code relies on.
3. according to the management method described in any one of claim 1-2, wherein, when to mirror image warehouse
When uploading image file, by least one boot image files passe described to mirror image warehouse.
Management method the most according to claim 3, wherein, described by least one code
Before image file uploads to the step in mirror image warehouse, also include: in advance by system image file and work
Tool image file uploads to mirror image warehouse.
5. according to the management method described in any one of claim 1-2, wherein, when downloading mirror image literary composition
During part, by least one boot image file download described to local.
Management method the most according to claim 5, wherein, described by least one generation described
Before the step that code image file is locally downloading, also include: in advance by system image file and instrument
Image file is locally downloading.
7. the management system of a many layer mirror picture, it is characterised in that described system includes:
Boot image generation module (10), for generating at least one by the packing of at least one code file
Individual boot image file;
Inheritance creation module (20), for based on pack in advance generate system image file and
Instrument image file, creates between each described boot image file and described instrument image file
Inheritance so that this instrument image file inherited by each described boot image file;
Wherein, described instrument image file inheritance system image file.
Management system the most according to claim 7, wherein, described system also includes:
System image generation module (30), for before generating boot image file, by operation be
System packing generates system image file;
Instrument mirror image generation module (40), for before generating boot image file, by business work
Tool packing Core Generator image file;Wherein, business tool is the environment that code relies on;
Described inheritance creation module (20) is additionally operable to create described system image file and instrument mirror
As the inheritance between file so that described instrument image file inheritance system image file.
9. according to the management system described in any one of claim 7-8, wherein, described system is also wrapped
Include:
Transmission module (50) on mirror image, for when uploading image file to mirror image warehouse, by described extremely
A few boot image files passe is to mirror image warehouse.
Management system the most according to claim 9, wherein, transmission module (50) on mirror image
Before at least one boot image files passe described to mirror image warehouse, transmission module (50) on mirror image
In advance system image file and instrument image file are uploaded to mirror image warehouse.
11. according to the management system described in any one of claim 7-8, and wherein, described system is also wrapped
Include:
Image download module (60), for when downloading image file, by least one code described
Image file is locally downloading.
12. management systems according to claim 11, wherein,
Before image download module (60) is by least one boot image file download described to this locality,
Image download module (60) is in advance by locally downloading to system image file and instrument image file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610244793.0A CN105930230A (en) | 2016-04-18 | 2016-04-18 | Multilayer mirror image management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610244793.0A CN105930230A (en) | 2016-04-18 | 2016-04-18 | Multilayer mirror image management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105930230A true CN105930230A (en) | 2016-09-07 |
Family
ID=56838515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610244793.0A Pending CN105930230A (en) | 2016-04-18 | 2016-04-18 | Multilayer mirror image management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105930230A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108023902A (en) * | 2016-10-31 | 2018-05-11 | 北京金山云网络技术有限公司 | A kind of method and device for building Dropbox service mirror image and disposing Dropbox service |
CN108156246A (en) * | 2017-12-27 | 2018-06-12 | 北京星河星云信息技术有限公司 | A kind of document distribution method, system, server and client |
CN109358857A (en) * | 2018-08-22 | 2019-02-19 | 华为技术有限公司 | Mirror image building, mirrored storage, mirror image distribution method and device |
CN109918911A (en) * | 2019-03-18 | 2019-06-21 | 北京升鑫网络科技有限公司 | A kind of scan method and equipment of mirror image installation package informatin |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101501637A (en) * | 2005-03-25 | 2009-08-05 | 索尼株式会社 | Modular imaging download system |
CN101694624A (en) * | 2009-10-19 | 2010-04-14 | 中兴通讯股份有限公司 | Method for processing compact disc image files of software installation package and device |
CN102053831A (en) * | 2010-12-10 | 2011-05-11 | 浪潮(北京)电子信息产业有限公司 | Linux operating system customizing method and system |
CN103186407A (en) * | 2011-12-28 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Virtual machine application system and method |
CN105138387A (en) * | 2015-08-31 | 2015-12-09 | 惠州Tcl移动通信有限公司 | Method, device and system for compiling software |
US9292586B2 (en) * | 2008-10-03 | 2016-03-22 | Microsoft Technology Licensing, Llc | System and method for synchronizing a repository with a declarative defintion |
-
2016
- 2016-04-18 CN CN201610244793.0A patent/CN105930230A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101501637A (en) * | 2005-03-25 | 2009-08-05 | 索尼株式会社 | Modular imaging download system |
US9292586B2 (en) * | 2008-10-03 | 2016-03-22 | Microsoft Technology Licensing, Llc | System and method for synchronizing a repository with a declarative defintion |
CN101694624A (en) * | 2009-10-19 | 2010-04-14 | 中兴通讯股份有限公司 | Method for processing compact disc image files of software installation package and device |
CN102053831A (en) * | 2010-12-10 | 2011-05-11 | 浪潮(北京)电子信息产业有限公司 | Linux operating system customizing method and system |
CN103186407A (en) * | 2011-12-28 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Virtual machine application system and method |
CN105138387A (en) * | 2015-08-31 | 2015-12-09 | 惠州Tcl移动通信有限公司 | Method, device and system for compiling software |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108023902A (en) * | 2016-10-31 | 2018-05-11 | 北京金山云网络技术有限公司 | A kind of method and device for building Dropbox service mirror image and disposing Dropbox service |
CN108023902B (en) * | 2016-10-31 | 2020-07-24 | 北京金山云网络技术有限公司 | Method and device for constructing network disk service mirror image and deploying network disk service |
CN108156246A (en) * | 2017-12-27 | 2018-06-12 | 北京星河星云信息技术有限公司 | A kind of document distribution method, system, server and client |
CN108156246B (en) * | 2017-12-27 | 2020-12-04 | 北京微网通联股份有限公司 | File distribution method, system, server and client |
CN109358857A (en) * | 2018-08-22 | 2019-02-19 | 华为技术有限公司 | Mirror image building, mirrored storage, mirror image distribution method and device |
CN109918911A (en) * | 2019-03-18 | 2019-06-21 | 北京升鑫网络科技有限公司 | A kind of scan method and equipment of mirror image installation package informatin |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10599533B2 (en) | Cloud storage using merkle trees | |
CN105930230A (en) | Multilayer mirror image management method | |
US9002962B2 (en) | Saving message attachments to an online content management system | |
US20160352811A1 (en) | Streaming zip | |
CN105656970A (en) | RAID (Redundant Array of Independent Disk) card configuring method and system and relevant device | |
CN114047938B (en) | Method, device, equipment and readable storage medium for constructing mirror image | |
US10019185B2 (en) | System and method for copying directory structures | |
CN107465709A (en) | Distributed mirror image structure multitask method and device, system | |
CN104539665A (en) | Remote file control system based on routers | |
CN109039730A (en) | Server cluster and server cluster configuration information management method | |
WO2016086612A1 (en) | Single-board software management method, system, and computer storage medium | |
CN105681343A (en) | Processing method and device for state control protocol based on ARM architecture | |
Lee et al. | Implementation of MapReduce-based image conversion module in cloud computing environment | |
CN106101710A (en) | A kind of distributed video transcoding method and device | |
CN104636397B (en) | Resource allocation methods, calculating accelerated method and device for Distributed Calculation | |
CN110309117A (en) | A kind of High Availabitity block chain storage method | |
CN110532016A (en) | Method for edition management, method for updating edition and edition management system | |
CN107589972B (en) | Method for sharing IPC (Internet protocol Camera) name space by Pod in Kubernetes | |
CN107977310B (en) | Traversal test command generation method and device | |
CN106648567A (en) | Data acquisition method and device | |
CN106951240A (en) | A kind of batch packaging method of user's customed product | |
CN110768811B (en) | Method, device and system for updating YANG model file library | |
CN106406978A (en) | Automatic making device and method for private cloud virtual machine template | |
CN104102480B (en) | The method and apparatus for generating configuration file | |
CN111198694A (en) | Software installation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160907 |