CN106227579A - A kind of Docker container construction method and Docker manage control station - Google Patents

A kind of Docker container construction method and Docker manage control station Download PDF

Info

Publication number
CN106227579A
CN106227579A CN201610546234.5A CN201610546234A CN106227579A CN 106227579 A CN106227579 A CN 106227579A CN 201610546234 A CN201610546234 A CN 201610546234A CN 106227579 A CN106227579 A CN 106227579A
Authority
CN
China
Prior art keywords
image
instruction
image planes
docker
file
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
Application number
CN201610546234.5A
Other languages
Chinese (zh)
Other versions
CN106227579B (en
Inventor
李傲
高峰
熊华忠
刘祥涛
孙淏添
赵彦晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cubic Information Technology Co Ltd Is Moistened In Shenzhen
Original Assignee
Cubic Information Technology Co Ltd Is Moistened In Shenzhen
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Cubic Information Technology Co Ltd Is Moistened In Shenzhen filed Critical Cubic Information Technology Co Ltd Is Moistened In Shenzhen
Priority to CN201610546234.5A priority Critical patent/CN106227579B/en
Publication of CN106227579A publication Critical patent/CN106227579A/en
Application granted granted Critical
Publication of CN106227579B publication Critical patent/CN106227579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors

Abstract

The invention discloses a kind of Docker mirror image construction method and Docker manages control station, increase in building script at mirror image and close layer instruction, during Docker mirror image is built, the merging of multiple Image Planes can be realized according to conjunction layer instruction, thus decrease quantity and the data volume of image file of Docker mirror image level, work efficiency is promoted, and has saved storage resource.The method comprise the steps that related application file and the mirror image structure script obtaining application, mirror image builds script and comprises conjunction layer instruction;Build script according to mirror image related application file mirrors is compiled, obtain Docker Image Planes;If present instruction is for closing layer instruction, obtains the image file of current Image Planes in Docker Image Planes, and obtain the image file of target Image Planes corresponding to target Image Planes mark;Image file according to current Image Planes and the image file of target Image Planes, obtain differential file, builds according to differential file and closes layer Image Planes;Conjunction layer Image Planes is committed to mirror image warehouse.

Description

A kind of Docker container construction method and Docker manage control station
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of Docker container construction method and Docker management control Platform processed.
Background technology
In a computer, virtualization (Virtualization) is a kind of resource management techniques, is various by computer Actual resource, such as server, network, internal memory and storage etc., presents after giving abstract and conversion, breaks between entity structure The obstacle that can not cut, makes the user can be than configuration better way originally to apply these resources.The new void of these resources Plan part is not erection mode by existing resource, and region or configuration are limited.The virtual resources of general indication includes Computing capability and storage capacity.In actual production environment, Intel Virtualization Technology is mainly used to solve high performance physical hardware Production capacity surplus and the too low restructuring of old old hardware production capacity are reused, transparence bottom physical hardware, thus maximized utilization Physical hardware.
Docker is a kind of Intel Virtualization Technology, is to build the virtualized means LXC (Linux at lightweight Container), on, it is a kind of lightweight virtualization solution based on Process Container (ProcessContainer). Docker is with Docker container as division of resources and the ultimate unit of scheduling, environment when encapsulating whole running software, for exploitation Person and system manager design, and user builds, issues and run the platform of Distributed Application.Docker compares other virtualization For technology, the most obvious feature starts soon exactly, and resource occupation is little.Therefore for build isolation standardized running environment, The PaaS of lightweight, build automatic test and continuous integrating environment, and all can (especially need in application extending transversely Quickly to start, to stop tackling the web application of peak valley), Docker is cross-platform a, transplantation and appearance easy to use Device solution.
On the basis of Docker container is built upon Aufs.Aufs is a kind of union file system (Union File System, UnionFS), it is a kind of storage engines of supporting the earliest of Docker, is exactly to support to hang different catalogues in simple terms It is downloaded under same Virtual File System, by under the content combination under each source directory to target directory, it is achieved a kind of layer (layer) concept.The multiple catalogues being mounted under same Virtual File System are arranged respectively to different authorities by Aufs, when In strict accordance with this increment relation between each catalogue, the catalogue being incremented operation is had precedence at it the when of mount directory On the basis of the catalogue carry of autoincrementing operation, treat that all catalogue carries finish, continue one read-write catalogue of carry, so Just a kind of hierarchical structure is defined.And these characteristics of Aufs are agreed with Docker mirrored storage very much, mirror image hierarchical mode Read-only (read-only) branch of branch's (source directory) Image Planes corresponding A ufs in corresponding A ufs;Container floor corresponding A ufs Read-write (read-write) branch.
The file system of Docker is as it is shown in figure 1, include boot file system (bootfs) and root file system (rootfs), bootfs includes boot loader (bootloader) and kernel (kernel), and bootfs is done by user never Any amendment, it practice, after boot has loaded, whole kernel suffers at internal memory, bootfs can unloaded fall with The internal memory that release and Initial R AM disk are associated.Rootfs has the normal structure of class Unix system, including/dev ,/proc ,/ Bin ,/etc ,/lib ,/usr ,/tmp and all users need to run the configuration file of various application, binary file and storehouse File (as bash, ls etc.).
Rootfs can be first set to read-only (read-only), then at System self-test when loading bootfs by traditional Linux Being changed into read-write (read-write) from read-only by rootfs afterwards, then we just can carry out write and read on rootfs Operate.But the mirror image of Docker is not so, it can't change the read-only of rootfs after bootfs self-inspection is complete For reading and writing, but union mount (a kind of carry mechanism of UnionFS) is utilized to be loaded by one or more read-only rootfs On read-only rootfs layer before.After being loaded with the rootfs of so multilamellar, still allow it only seem to seem One file system, in the system of Docker, these read-only rootfs union mount are called the mirror image of Docker (image).But, each layer of rootfs now is read-only, and we now can't operate on it.When we create Building a container, namely Docker mirror image is carried out instantiation, system can be on the rootfs that a layer or multilamellar are read-only Distribute one layer of empty read-write rootfs.The structure of Docker mirror image is as in figure 2 it is shown, tie to visualize the mirror image of Docker Structure, the mirror image of mono-ubuntu:14.04 of docker pull, use docker images-tree to check that result is as follows:
It can be seen that the mirror image of Ubuntu has the Image Planes (layer) of 4 tape serial numbers (uuid) and tree-shaped with one Structure is inherited.Wherein, (n+1)th layer inherits n-th layer, and has had the content of oneself, performance intuitively on this basis Being exactly (n+1)th layer to take disk space and increase, such as uuid is that the disk space that the Image Planes of 09694f91574e takies is 188MB, and the Image Planes that uuid is 1b19f5a8e3aa is father's mirror image of 09694f91574e, the disk space taken is 187.8MB.Further, different mirror images there may be identical father's mirror image, such as uuid be 09694f91574e, During in the Image Planes of 27955ff53489 and c917d6497f55, father's mirror image of mirror image is all the Image Planes of 1b19f5a8e3aa Mirror image.
But, existing Docker mirror image construction method in the Docker container platform system that existing clustered is disposed Have a disadvantage in that
1, Docker mirror image level limits is not can exceed that 127 layers, therefore, compiles the Image Planes progression of new image release Being restricted, during if it exceeds 127 layers of needs carry out the merging of mirror image level, owing to the mirror image number of plies is a lot, each level performs Operation complexity causes the file of change a lot, can be extremely with during last layer file because contrasting each layer when merging mirror image level Time-consumingly, efficiency is the lowest;
2, when Docker mirror image updates, the hierarchical information of each comparison mirror image, and each mirror image in mirror image warehouse are needed Whether layer exists at container host, and mirror image level is the most, compares the most time-consuming accordingly;
3, each Image Planes is required for taking certain disk space, and Image Planes is tree succession, so Be not the file of each Image Planes be necessary, cause the wave of the storage resource of mirror image warehouse server and container host Take;
Three disadvantages above, the work efficiency causing the Docker container platform system that clustered disposes is low, and wave Take storage resource.
Summary of the invention
The invention provides a kind of Docker mirror image construction method and Docker manages control station, for building foot at mirror image Increase in Ben and close layer instruction so that during Docker mirror image builds, it is possible to realize multiple Image Planes according to closing layer instruction Merge, thus decrease quantity and the data volume of image file of Docker mirror image level so that Docker container platform system Work efficiency promote, and saved storage resource.
First aspect present invention provides a kind of Docker mirror image construction method, including:
The related application file and the mirror image that obtain application build script, and described mirror image builds script and comprises conjunction layer instruction, institute State conjunction layer instruction and comprise target Image Planes mark;
Build script according to described mirror image described related application file mirrors is compiled, obtain Docker Image Planes;
If present instruction is the instruction of described conjunction layer, obtain the mirror image literary composition of current Image Planes in described Docker Image Planes Part, and obtain the image file of target Image Planes corresponding to described target Image Planes mark, described current Image Planes is in described On target Image Planes;
Image file according to described current Image Planes and the image file of described target Image Planes, obtain differential file, Build according to described differential file and close layer Image Planes;
Described conjunction layer Image Planes is committed to mirror image warehouse.
In conjunction with first aspect present invention, in first aspect present invention the first embodiment, described the relevant of acquisition application should Script is built with file and mirror image, including:
Obtain the related application file of application;
Determine that according to described related application file the old version number of described application, described old version number are at least two Individual;
Mirror image compiling instruction, described mirror image compiling instruction number and described old version is generated according to described old version number Number is identical;
According to described old version number and default conjunction layer rule, determine target Image Planes mark and close the layer location of instruction;
Generate according to described target Image Planes mark and close layer instruction, and according to the described conjunction layer location of instruction, described conjunction layer is referred to Order is inserted between the compiling instruction of described mirror image, generates mirror image and builds script.
In conjunction with first aspect present invention the first embodiment, in first aspect present invention the second embodiment, described basis Described mirror image builds script and compiles described related application file mirrors, obtains Docker Image Planes, including:
Obtain described mirror image and build the mirror image compiling instruction closed described in script before layer instruction;
Perform the compiling instruction of described mirror image, described related application file carried out mirror image compiling, obtains Docker Image Planes, Described Docker Image Planes includes target Image Planes.
In conjunction with first aspect present invention the second embodiment, in first aspect present invention the 3rd embodiment, described acquisition The image file of current Image Planes in described Docker Image Planes, and obtain the target mirror picture that described target Image Planes mark is corresponding The image file of layer, including:
If present instruction is the instruction of described conjunction layer, obtain the mirror image literary composition of current Image Planes in described Docker Image Planes Part;
Described target Image Planes mark in instructing according to described conjunction layer determines target mirror from described Docker Image Planes As layer, from described target Image Planes, read out the image file of described target Image Planes.
In conjunction with first aspect present invention the 3rd embodiment, in first aspect present invention the 4th embodiment, described by institute After stating conjunction layer Image Planes being committed to mirror image warehouse, also include:
Send to the container host that described application is corresponding and update instruction so that described container host is according to described renewal Instruct and download the image file described synthesis Image Planes from described mirror image warehouse.
Second aspect present invention provides a kind of Docker to manage control station, and described Docker management control station is contained in Docker container platform system, described Docker container platform system also has mirror image warehouse server, and described Docker manages Control station includes:
Acquisition module, builds script for the related application file and mirror image obtaining application, and described mirror image builds script bag Containing closing layer instruction, the instruction of described conjunction layer comprises target Image Planes mark;
Mirror image collector, compiles described related application file mirrors for building script according to described mirror image, obtains Docker Image Planes;
Image file acquisition module, for present instruction be described conjunction layer instruction time, obtain in described Docker Image Planes The image file of current Image Planes, and obtain the image file of target Image Planes corresponding to described target Image Planes mark, described Current Image Planes is on described target Image Planes;
Close layer module, be additionally operable to the mirror image literary composition of the image file according to described current Image Planes and described target Image Planes Part, obtains differential file, builds according to described differential file and closes layer Image Planes;
Mirror image submits module to, for described conjunction layer Image Planes is committed to the mirror image storehouse in described mirror image warehouse server Storehouse.
In conjunction with second aspect present invention, in second aspect present invention the first embodiment, described acquisition module includes: obtain Unit and instruction signal generating unit;
Described acquiring unit, for obtaining the related application file of application;
Described instruction signal generating unit, for determining the old version number of described application, institute according to described related application file State old version number at least two;
Described instruction signal generating unit, is additionally operable to generate mirror image compiling instruction according to described old version number, and described mirror image is compiled Translate instruction number identical with described old version number;
Described instruction signal generating unit, is additionally operable to, according to described old version number and default conjunction layer rule, determine target mirror As layer mark and the conjunction layer location of instruction;
Described instruction signal generating unit, is additionally operable to generate according to described target Image Planes mark close layer instruction, and according to described Close the layer location of instruction instruction of described conjunction layer to be inserted between the compiling instruction of described mirror image, generate mirror image and build script.
In conjunction with second aspect present invention the first embodiment, in second aspect present invention the second embodiment, described mirror image Collector includes: instruction acquiring unit and instruction execution unit;
Described instruction acquiring unit, the mirror image compiling closed described in script before layer instruction for obtaining described mirror image to build Instruction;
Described instruction execution unit, is used for performing the compiling instruction of described mirror image, described related application file is carried out mirror image Compiling, obtains Docker Image Planes, and described Docker Image Planes includes target Image Planes.
In conjunction with second aspect present invention the second embodiment, in second aspect present invention the 3rd embodiment,
Described image file acquisition module, when being the instruction of described conjunction layer specifically for present instruction, obtains described Docker The image file of current Image Planes in Image Planes;
Described image file acquisition module, is additionally operable to the described target Image Planes in instructing according to described conjunction layer and identifies from institute State and Docker Image Planes determines target Image Planes, from described target Image Planes, read out the mirror image literary composition of described target Image Planes Part.
In conjunction with second aspect present invention the 3rd embodiment, in second aspect present invention the 4th embodiment, described Docker management control station also includes: sending module;
Described sending module, sends for the container host corresponding to described application and updates instruction so that described container Host updates instruction image file from the described synthesis Image Planes of described mirror image warehouse download according to described.
In sum, the embodiment of the present invention has the advantage that
The related application file and the mirror image that obtain application build script, and described mirror image builds script and comprises conjunction layer instruction, institute State conjunction layer instruction and comprise target Image Planes mark;Build script according to mirror image related application file mirrors is compiled, obtain Docker Image Planes;If present instruction is for closing layer instruction, obtain the image file of current Image Planes in Docker Image Planes, and Obtaining the image file of target Image Planes corresponding to target Image Planes mark, current Image Planes is on target Image Planes;Root According to image file and the image file of target Image Planes of current Image Planes, obtain differential file, build according to differential file and close Layer Image Planes, is committed to mirror image warehouse by conjunctions layer Image Planes, current Image Planes when performing to close layer instruction and target Image Planes it Between all Image Planes all close layer and be one and close layer Image Planes, and close the image file comprising two Image Planes in layer Image Planes Differential file, compared with prior art, decrease the quantity of Docker mirror image level, and the data volume of image file, make The work efficiency obtaining Docker container platform system promotes, and has saved storage resource.
Accompanying drawing explanation
In order to be illustrated more clearly that embodiment of the present invention technical scheme, below will be to institute in embodiment and description of the prior art The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only some enforcements of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtains according to these accompanying drawings Obtain other accompanying drawing.
Fig. 1 is the structural representation of the file system of existing Docker;
Fig. 2 is the structural representation of existing Docker mirror image;
Fig. 3 is the structural representation of the Docker container platform system of the present invention;
Fig. 4 is the structural representation of the Docker mirror image of the present invention;
Fig. 5 is a schematic flow sheet of Docker mirror image construction method in the embodiment of the present invention;
Fig. 6 is a structural representation of Docker management control station in the embodiment of the present invention;
Fig. 7 is another structural representation of Docker management control station in the embodiment of the present invention.
Detailed description of the invention
The invention provides a kind of Docker mirror image construction method and Docker manages control station, for building foot at mirror image Increase in Ben and close layer instruction so that during Docker mirror image builds, it is possible to realize multiple Image Planes according to closing layer instruction Merge, thus decrease quantity and the data volume of image file of Docker mirror image level so that work efficiency promotes, and saves About storage resource.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, all should belong to the model of present invention protection Enclose.
Present invention is mainly applied in the Docker container platform system of clustered, as it is shown on figure 3, Docker management controls Platform and a mirror image warehouse server and multiple container host connect, and mirror image warehouse server has mirror image warehouse, container place Main frame can be subscriber equipment etc., if the application on container host needs to update, then downloads from mirror image warehouse and applies The image file of redaction, starts the Docker container that application is corresponding as required.
A mirror image of the prior art is configured to: the version of an application is 3.0 versions, and application developer pair now This is applied and improves some function on the basis of 3.0 versions, has been upgraded to 4.0 versions, the 1.0 of this application, 2.0 and 3.0 editions This image file all exists in mirror image warehouse, and application developer imports the application file of 4.0 versions, and mirror image builds foot This, mirror image builds and comprises 4 mirror image compiling instructions in script, and every mirror image compiling instruction is for building the practical writing of a version The Image Planes of part, as shown in Figure 4, what image file in Image Planes 1 was corresponding is 1.0 versions to the Docker mirror image of structure, mirror image What image file in layer 2 was corresponding is 2.0 versions, and what image file in Image Planes 3 was corresponding is 3.0 versions, and Image Planes 4 is (i.e. Docker container) in image file corresponding be 4.0 versions (i.e. current versions).
Applications described above only has the situation of 4 versions, the most only 4 layers Image Planes, but Docker mirror image level Restriction is not can exceed that 127 layers, when the old version of application is a lot, needs to carry out the merging of Image Planes.
Below by embodiment, Docker mirror image construction method is described in detail.
Referring to Fig. 5, in the embodiment of the present invention, an embodiment of Docker mirror image construction method includes:
501, the related application file and the mirror image that obtain application build script, and mirror image builds script and comprises conjunction layer instruction, closes Layer instruction comprises target Image Planes mark;
In the present embodiment, it is assumed that the version of an application needs to update, then Docker container platform system receives user The application file of that import or by this application of Network Capture current version, wraps in the storage of Docker container platform system Containing the application file of old version before this application, therefore obtain the related application file of this application, and it is defeated to receive user The mirror image entered builds script, or the mirror image that Docker container platform system automatically generates builds script, and mirror image builds script bag Containing closing layer instruction (" CLEAN "), close layer instruction and comprise target Image Planes mark, close layer instruction for by current Image Planes and target Image Planes carries out closing layer.
502, build script according to mirror image related application file mirrors is compiled, obtain Docker Image Planes;
In the present embodiment, according to existing rule, mirror image builds script and comprises at least one mirror image compiling instruction, root The mirror image compiling instruction built in script according to mirror image carries out mirror image compiling to related application file, obtains Docker Image Planes, false Being set to the application of above-mentioned Fig. 4, version is 4, comprises 4 mirror image compiling instructions, and instruction 1 is for compiled version 1.0, instruction 2 use In compiled version 2.0, instruction 3 is for compiled version 3.0, and instruction 4 is for compiled version 4.0, and tree-shaped due to mirror image level continues Backing formula, instruction perform sequencing successively be instruction 1-instruction 2-instruction 3-instruction 4, and close layer instruction be in instruction 4 it After, and the target Image Planes preset is the Image Planes of version 2 .0.
If 503 present instructions are for closing layer instruction, obtain the image file of current Image Planes in Docker Image Planes, and Obtain the image file of target Image Planes corresponding to target Image Planes mark;
In the present embodiment, if currently executing instruction is synthetic instruction, obtain in Docker Image Planes current The image file of Image Planes, in Fig. 4, Image Planes 4 is exactly current Image Planes, and obtains the target mirror that target Image Planes mark is corresponding As the image file of layer, target Image Planes is exactly Image Planes 2.
504, according to image file and the image file of target Image Planes of current Image Planes, differential file is obtained, according to Differential file builds and closes layer Image Planes;
In the present embodiment, compare image file and the mirror of target Image Planes (Image Planes 2) of current Image Planes (Image Planes 4) As the difference between file, it is assumed that the image file of Image Planes 2 is the application file of 2.0 versions, the application of 4.0 versions be Speech identifying function is added, then the image file of Image Planes 4 is than the mirror image compared to Image Planes 2 on the basis of 2.0 versions File has had more the file content relevant to speech identifying function or data, these file contents or data is extracted, whole Conjunction obtains differential file;It addition, it is also possible that applying of new version deletes some function on the basis of old version is applied, Like this, the image file of Image Planes 4 than compared to the image file of Image Planes 2 be few delete function associated documents in Perhaps data, then these file contents or data are extracted, integrate and obtain differential file, due to the mirror of Image Planes 4 As file corresponding be the application file of latest edition 4.0, and according to inheritance mechanism, the image file of Image Planes 2 is mirror image Father's mirror image of the image file of layer 4, according to the differential file obtained, according to mirror image compiling rule, builds one according to differential file The Image Planes that layer is new, as closing layer Image Planes.
505, conjunction layer Image Planes is committed to mirror image warehouse.
In the present embodiment, after constructing conjunction layer Image Planes, conjunction layer Image Planes is committed to mirror image warehouse, application correspondence Container host can obtain image file from the conjunction layer Image Planes in mirror image warehouse, i.e. differential file.
In the embodiment of the present invention, on the basis of existing technology, by amendment Docker source code mode, solve because again Miscellaneous mirror image structure script or long-term version iteration cause the problem that mirror image level is too much, and walking around Docker mirror image level can not exceed The restriction of 127 layers;Compared with the merging Image Planes of prior art, it is the mirror of two Image Planes owing to the present invention closes in layer Image Planes As the differential file of file, merge the time-consuming of Image Planes after therefore, it can be greatly reduced, improve efficiency;With prior art Compare, decrease the quantity of Docker mirror image level so that the interaction times between container host and mirror image warehouse reduces, by Large number of in container host, the pressure of mirror image warehouse server can be reduced;It is two mirrors owing to closing in layer Image Planes After the image file contrast in layer, the differential file obtained, then close the data volume of image file in layer Image Planes with Prior art is compared and is decreased, and has saved the storage resource of mirror image warehouse server and container host.
In above-described embodiment, it can be that user inputs that mirror image builds script, it is also possible to be automatically generated, below by Embodiment to how obtaining mirror image structure script is described in detail.
Optionally, in some embodiments of the present invention, the related application file and the mirror image that obtain application build script, bag Include:
Obtain the related application file of application;
The old version number of application, old version number at least two is determined according to related application file;
Generating mirror image compiling instruction according to old version number, mirror image compiling instruction number is identical with old version number;
According to old version number and default conjunction layer rule, determine target Image Planes mark and close the layer location of instruction;
Close layer instruction according to the mark generation of target Image Planes, and according to the conjunction layer location of instruction, mirror image volume is inserted in conjunction layer instruction Translate between instruction, generate mirror image and build script.
In the embodiment of the present invention, after getting the related application file of application, determine the old version number of application, according to Old version number generates mirror image compiling instruction, and mirror image compiling instruction number is identical with old version number, according to old version number and The conjunction layer rule preset, determines target Image Planes mark and closes the layer location of instruction, and default conjunction layer rule can be to preset when needing The when that the number of plies (i.e. old version number) of Image Planes to be compiled exceeding certain value, determine two Image Planes needing to merge, Using forward Image Planes as target Image Planes, determine that target Image Planes identifies (i.e. the title of the Image Planes of target version), lean on After Image Planes as current Image Planes, i.e. synthetic instruction position be exactly current Image Planes mirror image compile instruction after, root Close layer instruction according to the mark generation of target Image Planes, and according to closing the layer location of instruction, mirror image compiling instruction is inserted in conjunction layer instruction Between, generate mirror image and build script, synthetic instruction setting of position in mirror image builds script is illustrated, specify that needs The Image Planes merged.
Optionally, in some embodiments of the present invention, build script according to mirror image and related application file mirrors is compiled, To Docker Image Planes, including:
Obtain mirror image and build the mirror image compiling instruction closed in script before layer instruction;
Perform mirror image compiling instruction, related application file is carried out mirror image compiling, obtains Docker Image Planes, Docker mirror As layer includes target Image Planes.
In the embodiment of the present invention, it is how to build script according to mirror image to carry out mirror image compiling to Docker management control station Refine so that scheme is more specifically.
Optionally, in some embodiments of the present invention, obtain the image file of current Image Planes in Docker Image Planes, and Obtain the image file of target Image Planes corresponding to target Image Planes mark, including:
If present instruction is for closing layer instruction, obtain the image file of current Image Planes in Docker Image Planes;
Target Image Planes mark according to closing in layer instruction determines target Image Planes, from target mirror from Docker Image Planes As layer reads out the image file of target Image Planes.
In the embodiment of the present invention, when currently executing instruction is to close layer instruction, obtain current mirror image in Docker Image Planes The image file of layer, the target Image Planes mark according to closing in layer instruction determines target Image Planes, mesh from Docker Image Planes Image file in mark Image Planes is readable, reads out the image file of target Image Planes from target Image Planes.
Optionally, in some embodiments of the present invention, Docker mirror image construction method also includes:
Send to the container host that application is corresponding and update instruction so that container host is according to updating instruction from mirror image storehouse The image file in synthesis Image Planes is downloaded in storehouse.
In the embodiment of the present invention, after Docker mirror image has built, the container host corresponding to application sends more New instruction so that container host can know that according to updating instruction application updates, under the mirror image warehouse from mirror image server Carry the image file in synthesis Image Planes, i.e. differential file, and the mirror image literary composition of the latest edition being applied according to differential file Part, starts application container based on latest edition mirror image according to actual needs so that container host can start application, and Need not obtain and preserve whole image files of redaction application, but obtain and preserve redaction application and legacy version application The image file of differential file, decreases the biography of the data volume of image file between mirror image warehouse and container host Defeated, and decrease the data volume that container host needs the image file of preservation.
Above-described embodiment describes the Docker mirror image construction method of the embodiment of the present invention, below by embodiment pair Docker management control station is described in detail.
Referring to Fig. 6, the embodiment of the present invention provides a kind of Docker to manage control station, and Docker management control station is contained in Docker container platform system, Docker container platform system also has mirror image warehouse server device and at least one container host Machine, including:
Acquisition module 601, builds script for the related application file and mirror image obtaining application, and mirror image builds script and comprises Conjunction layer instructs, and closes layer instruction and comprises target Image Planes mark;
Mirror image collector 602, compiles related application file mirrors for building script according to mirror image, obtains Docker Image Planes;
Image file acquisition module 603, when present instruction instructs for closing layer, obtains current mirror in Docker Image Planes As the image file of layer, and obtaining the image file that target Image Planes identifies the target Image Planes of correspondence, current Image Planes is in On target Image Planes;
Close layer module 604, for the image file according to current Image Planes and the image file of target Image Planes, poor Different article part, builds according to differential file and closes layer Image Planes;
Mirror image submits module 605 to, for closing the mirror image warehouse that layer Image Planes is committed in mirror image warehouse server.
In the embodiment of the present invention, mirror image collector 602 performs to close current Image Planes when layer instructs and target Image Planes Between all Image Planes all close layer and be one and close layer Image Planes, and closing in layer Image Planes is the image file of two Image Planes Differential file, compared with prior art, decrease the quantity of Docker mirror image level, and the data volume of image file, make The work efficiency obtaining Docker container platform system promotes, and has saved storage resource.
Optionally, as it is shown in fig. 7, in some embodiments of the present invention, acquisition module 601 includes: acquiring unit 701 and referring to Make signal generating unit 702;
Acquiring unit 701, for obtaining the related application file of application;
Instruction signal generating unit 702, for determining the old version number of application according to related application file, old version number is extremely It is two less;
Instruction signal generating unit 702, is additionally operable to generate mirror image compiling instruction, mirror image compiling instruction number according to old version number Identical with old version number;
Instruction signal generating unit 702, is additionally operable to, according to old version number and default conjunction layer rule, determine target Image Planes mark Know and close the layer location of instruction;
Instruction signal generating unit 702, is additionally operable to generate according to target Image Planes mark close layer instruction, and according to closing layer command bits Put and the instruction of conjunction layer is inserted between mirror image compiling instruction, generate mirror image and build script.
In the embodiment of the present invention, after acquiring unit 701 gets the related application file of application, instruct signal generating unit The 702 old version numbers determining application, instruction signal generating unit 702 generates mirror image compiling instruction according to old version number, and mirror image is compiled Translate instruction number identical with old version number, according to old version number and default conjunction layer rule, determine that target Image Planes identifies And close the layer location of instruction, default layer rule of closing can be to preset when the number of plies (i.e. old version number) of the Image Planes needing compiling The when of exceeding certain value, instruction signal generating unit 702 determines two Image Planes needing to merge, using forward Image Planes as mesh Mark Image Planes, instruction signal generating unit 702 determines that target Image Planes identifies (i.e. the title of the Image Planes of target version), mirror rearward Picture layer is exactly after the mirror image of current Image Planes compiles instruction as current Image Planes, i.e. synthetic instruction position, according to target Layer instruction is closed in Image Planes mark generation, and inserts between mirror image compiling instruction according to closing the layer location of instruction by conjunction layer instruction, generation Mirror image builds script, is illustrated synthetic instruction setting of position in mirror image builds script, specify that and need merging Image Planes.
Optionally, as it is shown in fig. 7, in some embodiments of the present invention, mirror image collector 602 includes: instruction obtains single Unit 703 and instruction execution unit 704;
Instruction acquiring unit 703, the mirror image compiling instruction closed in script before layer instruction for obtaining mirror image to build;
Instruction execution unit 704, is used for performing mirror image compiling instruction, related application file is carried out mirror image compiling, obtains Docker Image Planes, Docker Image Planes includes target Image Planes.
In the embodiment of the present invention, it is how to build script according to mirror image to carry out mirror image volume to image file acquisition module 603 The carrying out translated refines so that scheme is more specifically.
Optionally, as it is shown in fig. 7, in some embodiments of the present invention,
Image file acquisition module 603, during specifically for present instruction for closing layer instruction, obtain in Docker Image Planes when The image file of front Image Planes;
Image file acquisition module 603, is additionally operable to the target Image Planes according to closing in layer instruction and identifies from Docker mirror image Determine target Image Planes in Ceng, from target Image Planes, read out the image file of target Image Planes.
In the embodiment of the present invention, when currently executing instruction is to close layer instruction, image file acquisition module 603 obtains The image file of current Image Planes in Docker Image Planes, the target Image Planes according to closing in layer instruction identifies from Docker mirror image Determine in Ceng that target Image Planes, the image file in target Image Planes are readable, from target Image Planes, read out target mirror picture The image file of layer.
Optionally, as it is shown in fig. 7, in some embodiments of the present invention, Docker management control station also includes: sending module 705;
Sending module, sends for the container host corresponding to application and updates instruction so that container host is according to more New instruction downloads the image file synthesis Image Planes from mirror image warehouse.
In the embodiment of the present invention, after Docker mirror image has built, sending module 705 is to the container place of application correspondence Main frame sends and updates instruction so that container host can know that according to updating instruction application updates, and it is poor to download from mirror image warehouse Different article part, and the image file of the latest edition being applied according to differential file, start according to actual needs based on latest edition The application container of this mirror image so that container host can start application, and need not obtain and preserve redaction application All image files, but obtain the image file preserving redaction application with the differential file of legacy version application, reduce The transmission of the data volume of the image file between mirror image warehouse and container host, and decrease container host and need to protect The data volume of the image file deposited..
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the system of foregoing description, The specific works process of equipment and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, equipment and method, permissible Realize by another way.Such as, apparatus embodiments described above is only schematically, such as, and described unit Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, equipment or unit Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that: it still can be to front State the technical scheme described in each embodiment to modify, or wherein portion of techniques feature is carried out equivalent;And these Amendment or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a Docker mirror image construction method, it is characterised in that including:
The related application file and the mirror image that obtain application build script, and described mirror image builds script and comprises conjunction layer instruction, described conjunction Layer instruction comprises target Image Planes mark;
Build script according to described mirror image described related application file mirrors is compiled, obtain Docker Image Planes;
If present instruction is the instruction of described conjunction layer, obtain the image file of current Image Planes in described Docker Image Planes, and Obtaining the image file of target Image Planes corresponding to described target Image Planes mark, described current Image Planes is in described target mirror As on layer;
Image file according to described current Image Planes and the image file of described target Image Planes, obtain differential file, according to Described differential file builds and closes layer Image Planes;
Described conjunction layer Image Planes is committed to mirror image warehouse.
Docker mirror image construction method the most according to claim 1, it is characterised in that the related application of described acquisition application File and mirror image build script, including:
Obtain the related application file of application;
The old version number of described application, described old version number at least two is determined according to described related application file;
Mirror image compiling instruction, described mirror image compiling instruction number and described old version number phase is generated according to described old version number With;
According to described old version number and default conjunction layer rule, determine target Image Planes mark and close the layer location of instruction;
Generate according to described target Image Planes mark and close layer instruction, and according to the described conjunction layer location of instruction, the instruction of described conjunction layer is inserted Enter between the compiling instruction of described mirror image, generate mirror image and build script.
Docker mirror image construction method the most according to claim 2, it is characterised in that described according to described mirror image structure foot Described related application file mirrors is compiled by this, obtains Docker Image Planes, including:
Obtain described mirror image and build the mirror image compiling instruction closed described in script before layer instruction;
Perform the compiling instruction of described mirror image, described related application file is carried out mirror image compiling, obtains Docker Image Planes, described Docker Image Planes includes target Image Planes.
Docker mirror image construction method the most according to claim 3, it is characterised in that described acquisition described Docker mirror image The image file of current Image Planes in Ceng, and obtain the image file of target Image Planes corresponding to described target Image Planes mark, Including:
If present instruction is the instruction of described conjunction layer, obtain the image file of current Image Planes in described Docker Image Planes;
Described target Image Planes mark in instructing according to described conjunction layer determines target Image Planes from described Docker Image Planes, The image file of described target Image Planes is read out from described target Image Planes.
Docker mirror image construction method the most according to claim 4, it is characterised in that described Docker mirror image construction method Also include:
Send to the container host that described application is corresponding and update instruction so that described container host updates instruction according to described The image file described synthesis Image Planes is downloaded from described mirror image warehouse.
6. a Docker manages control station, it is characterised in that described Docker management control station is contained in Docker container and puts down Platform system, described Docker container platform system also has mirror image warehouse server, and described Docker management control station includes:
Acquisition module, builds script for the related application file and mirror image obtaining application, and described mirror image builds script and comprises conjunction Layer instruction, the instruction of described conjunction layer comprises target Image Planes mark;
Mirror image collector, compiles described related application file mirrors for building script according to described mirror image, obtains Docker Image Planes;
Image file acquisition module, for present instruction be the instruction of described conjunction layer time, obtain in described Docker Image Planes current The image file of Image Planes, and obtain the image file of target Image Planes corresponding to described target Image Planes mark, described currently Image Planes is on described target Image Planes;
Close layer module, for the image file according to described current Image Planes and the image file of described target Image Planes, obtain Differential file, builds according to described differential file and closes layer Image Planes;
Mirror image submits module to, for described conjunction layer Image Planes is committed to the mirror image warehouse in described mirror image warehouse server.
Docker the most according to claim 6 manages control station, it is characterised in that described acquisition module includes: obtain single Unit and instruction signal generating unit;
Described acquiring unit, for obtaining the related application file of application;
Described instruction signal generating unit, for determining the old version number of described application according to described related application file, described in go through History version number at least two;
Described instruction signal generating unit, is additionally operable to generate mirror image compiling instruction according to described old version number, and the compiling of described mirror image refers to Make quantity identical with described old version number;
Described instruction signal generating unit, is additionally operable to, according to described old version number and default conjunction layer rule, determine target Image Planes Mark and the conjunction layer location of instruction;
Described instruction signal generating unit, is additionally operable to generate according to described target Image Planes mark close layer instruction, and according to described conjunction layer The instruction of described conjunction layer is inserted between the compiling instruction of described mirror image by the location of instruction, generates mirror image and builds script.
Docker the most according to claim 7 manages control station, it is characterised in that described mirror image collector includes: refer to Make acquiring unit and instruction execution unit;
Described instruction acquiring unit, the mirror image compiling built before closing layer instruction described in script for obtaining described mirror image refers to Order;
Described instruction execution unit, is used for performing the compiling instruction of described mirror image, described related application file is carried out mirror image compiling, Obtaining Docker Image Planes, described Docker Image Planes includes target Image Planes.
Docker the most according to claim 8 manages control station, it is characterised in that
Described image file acquisition module, when being the instruction of described conjunction layer specifically for present instruction, obtains described Docker mirror image The image file of current Image Planes in Ceng;
Described image file acquisition module, is additionally operable to the described target Image Planes in instructing according to described conjunction layer and identifies from described Docker Image Planes determines target Image Planes, from described target Image Planes, reads out the mirror image literary composition of described target Image Planes Part.
Docker the most according to claim 9 manages control station, it is characterised in that described Docker management control station is also Including: sending module;
Described sending module, sends for the container host corresponding to described application and updates instruction so that described container host Machine updates instruction image file from the described synthesis Image Planes of described mirror image warehouse download according to described.
CN201610546234.5A 2016-07-12 2016-07-12 Docker container construction method and Docker management console Active CN106227579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610546234.5A CN106227579B (en) 2016-07-12 2016-07-12 Docker container construction method and Docker management console

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610546234.5A CN106227579B (en) 2016-07-12 2016-07-12 Docker container construction method and Docker management console

Publications (2)

Publication Number Publication Date
CN106227579A true CN106227579A (en) 2016-12-14
CN106227579B CN106227579B (en) 2020-01-31

Family

ID=57519081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610546234.5A Active CN106227579B (en) 2016-07-12 2016-07-12 Docker container construction method and Docker management console

Country Status (1)

Country Link
CN (1) CN106227579B (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802807A (en) * 2017-02-20 2017-06-06 深圳市冬泉谷信息技术有限公司 Application delivery method, container platform and application delivery system based on container platform
CN106933635A (en) * 2017-03-15 2017-07-07 北京搜狐新媒体信息技术有限公司 Docker mirror images generation method and Docker containers
CN107105054A (en) * 2017-05-17 2017-08-29 郑州云海信息技术有限公司 A kind of mirror image garbage-cleaning system and method towards docker mirror images warehouse
CN107491329A (en) * 2017-08-04 2017-12-19 上海携程商务有限公司 Docker mirror images construction method, equipment, storage medium and electronic installation
CN107544824A (en) * 2017-08-09 2018-01-05 北京华宇信息技术有限公司 Bag, generation and operation method and readable storage medium storing program for executing are issued in new project delivery
CN107577475A (en) * 2017-08-22 2018-01-12 清华大学 A kind of software package management method and system of data center's group system
CN107608735A (en) * 2017-09-27 2018-01-19 郑州云海信息技术有限公司 A kind of container mirror image integrated approach and its device
CN107643918A (en) * 2017-09-19 2018-01-30 郑州云海信息技术有限公司 A kind of Container Management method and device
CN107809467A (en) * 2017-10-10 2018-03-16 暨南大学 Container mirror image data deletes method under a kind of cloud environment
CN108170514A (en) * 2017-12-19 2018-06-15 中国科学院声学研究所 A kind of container operation method and device
WO2019056931A1 (en) * 2017-09-22 2019-03-28 华为技术有限公司 Mirror image upgrading method and device
CN109783191A (en) * 2018-12-18 2019-05-21 全球能源互联网研究院有限公司 Management, use and construction method, the device of container mirror image
CN109901816A (en) * 2017-12-08 2019-06-18 中国科学院上海高等研究院 Co-development method, terminal, medium and the system of protection copyright based on container
US10606805B2 (en) 2017-11-16 2020-03-31 Red Hat, Inc. Object-level image query and retrieval
US10719345B2 (en) 2018-05-16 2020-07-21 International Business Machines Corporation Container image building
WO2020232713A1 (en) * 2019-05-23 2020-11-26 Microsoft Technology Licensing, Llc Container instantiation with union file system layer mounts
US10970258B2 (en) 2018-02-23 2021-04-06 Red Hat, Inc. Managing container-image layers
CN112799711A (en) * 2021-01-29 2021-05-14 广州文远知行科技有限公司 Method and device for merging container images, computer equipment and storage medium
WO2021129038A1 (en) * 2019-12-23 2021-07-01 华中科技大学 Water resource management system service clustering framework construction method
CN113342378A (en) * 2021-06-25 2021-09-03 山东浪潮通软信息科技有限公司 Mirror image generation method, device and medium based on file system update
US11182193B2 (en) 2019-07-02 2021-11-23 International Business Machines Corporation Optimizing image reconstruction for container registries
US11243758B2 (en) 2020-02-13 2022-02-08 International Business Machines Corporation Cognitively determining updates for container based solutions
WO2022088710A1 (en) * 2020-10-29 2022-05-05 华为技术有限公司 Mirror image management method and apparatus
CN113342378B (en) * 2021-06-25 2022-08-02 浪潮通用软件有限公司 Mirror image generation method, device and medium based on file system update

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment
CN103023990B (en) * 2012-11-28 2016-06-08 迈普通信技术股份有限公司 Image file upgrade-system in pile system and method
CN105653449A (en) * 2015-12-28 2016-06-08 湖南蚁坊软件有限公司 Continuous integration method based on container virtualization
CN105740038A (en) * 2016-02-02 2016-07-06 浙江工业大学 Internet-of-things reprogramming-oriented storage optimization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023990B (en) * 2012-11-28 2016-06-08 迈普通信技术股份有限公司 Image file upgrade-system in pile system and method
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment
CN105653449A (en) * 2015-12-28 2016-06-08 湖南蚁坊软件有限公司 Continuous integration method based on container virtualization
CN105740038A (en) * 2016-02-02 2016-07-06 浙江工业大学 Internet-of-things reprogramming-oriented storage optimization method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘琳羽等: "一种基于Docker的开发者服务平台设计", 《科研信息化技术与应用》 *
叶翼安: "一种基于Docker构件化集成交付的软件仓库模式设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802807A (en) * 2017-02-20 2017-06-06 深圳市冬泉谷信息技术有限公司 Application delivery method, container platform and application delivery system based on container platform
CN106933635B (en) * 2017-03-15 2020-06-30 北京搜狐新媒体信息技术有限公司 Docker mirror image generation method and Docker container
CN106933635A (en) * 2017-03-15 2017-07-07 北京搜狐新媒体信息技术有限公司 Docker mirror images generation method and Docker containers
CN107105054A (en) * 2017-05-17 2017-08-29 郑州云海信息技术有限公司 A kind of mirror image garbage-cleaning system and method towards docker mirror images warehouse
CN107105054B (en) * 2017-05-17 2019-12-24 苏州浪潮智能科技有限公司 Mirror image garbage cleaning system and method for docker mirror image warehouse
CN107491329A (en) * 2017-08-04 2017-12-19 上海携程商务有限公司 Docker mirror images construction method, equipment, storage medium and electronic installation
CN107491329B (en) * 2017-08-04 2021-03-16 上海携程商务有限公司 Docker mirror image construction method, device, storage medium and electronic device
CN107544824A (en) * 2017-08-09 2018-01-05 北京华宇信息技术有限公司 Bag, generation and operation method and readable storage medium storing program for executing are issued in new project delivery
CN107577475A (en) * 2017-08-22 2018-01-12 清华大学 A kind of software package management method and system of data center's group system
CN107577475B (en) * 2017-08-22 2020-02-07 清华大学 Software package management method and system of data center cluster system
CN107643918B (en) * 2017-09-19 2021-07-02 郑州云海信息技术有限公司 Container management method and device
CN107643918A (en) * 2017-09-19 2018-01-30 郑州云海信息技术有限公司 A kind of Container Management method and device
CN109542493A (en) * 2017-09-22 2019-03-29 华为技术有限公司 A kind of image upgrade method and apparatus
WO2019056931A1 (en) * 2017-09-22 2019-03-28 华为技术有限公司 Mirror image upgrading method and device
US11249745B2 (en) 2017-09-22 2022-02-15 Huawei Technologies Co., Ltd. Image upgrade method and device
CN107608735A (en) * 2017-09-27 2018-01-19 郑州云海信息技术有限公司 A kind of container mirror image integrated approach and its device
CN107809467A (en) * 2017-10-10 2018-03-16 暨南大学 Container mirror image data deletes method under a kind of cloud environment
CN107809467B (en) * 2017-10-10 2020-06-16 暨南大学 Method for deleting container mirror image data in cloud environment
US10606805B2 (en) 2017-11-16 2020-03-31 Red Hat, Inc. Object-level image query and retrieval
CN109901816A (en) * 2017-12-08 2019-06-18 中国科学院上海高等研究院 Co-development method, terminal, medium and the system of protection copyright based on container
CN108170514A (en) * 2017-12-19 2018-06-15 中国科学院声学研究所 A kind of container operation method and device
US10970258B2 (en) 2018-02-23 2021-04-06 Red Hat, Inc. Managing container-image layers
US10719345B2 (en) 2018-05-16 2020-07-21 International Business Machines Corporation Container image building
CN109783191A (en) * 2018-12-18 2019-05-21 全球能源互联网研究院有限公司 Management, use and construction method, the device of container mirror image
CN109783191B (en) * 2018-12-18 2020-09-08 全球能源互联网研究院有限公司 Management, use and construction method and device of container mirror image
WO2020232713A1 (en) * 2019-05-23 2020-11-26 Microsoft Technology Licensing, Llc Container instantiation with union file system layer mounts
US11182193B2 (en) 2019-07-02 2021-11-23 International Business Machines Corporation Optimizing image reconstruction for container registries
WO2021129038A1 (en) * 2019-12-23 2021-07-01 华中科技大学 Water resource management system service clustering framework construction method
US11243758B2 (en) 2020-02-13 2022-02-08 International Business Machines Corporation Cognitively determining updates for container based solutions
WO2022088710A1 (en) * 2020-10-29 2022-05-05 华为技术有限公司 Mirror image management method and apparatus
CN112799711A (en) * 2021-01-29 2021-05-14 广州文远知行科技有限公司 Method and device for merging container images, computer equipment and storage medium
CN113342378A (en) * 2021-06-25 2021-09-03 山东浪潮通软信息科技有限公司 Mirror image generation method, device and medium based on file system update
CN113342378B (en) * 2021-06-25 2022-08-02 浪潮通用软件有限公司 Mirror image generation method, device and medium based on file system update

Also Published As

Publication number Publication date
CN106227579B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN106227579A (en) A kind of Docker container construction method and Docker manage control station
US9766945B2 (en) Virtual resource scheduling for containers with migration
US11144306B2 (en) Scheduling upgrades in distributed computing systems
US10606800B1 (en) Policy-based layered filesystem management
US9104673B2 (en) Method for supporting multiple filesystem implementations
US7440980B2 (en) Computer file management system
US8370835B2 (en) Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device
US7805409B2 (en) Dynamic composition of an execution environment from multiple immutable file system images
US20120054731A1 (en) Method, System and Computer Programs to Assist Migration to a Cloud Computing Environment
US7433900B2 (en) Custom filesystem having file mappings to files of a real filesystem
CN101650660B (en) Booting a computer system from central storage
US8667035B2 (en) Method of converting a filesystem while the filesystem remains in an active state
WO2001082058A2 (en) Dynamic file system configurations
US11016785B2 (en) Method and system for mirror image package preparation and application operation
CN105144093A (en) Workload deployment with infrastructure management agent provisioning
CN104866324A (en) Method for constructing portable operating system and portable memorizer
US20200026505A1 (en) Scheduling firmware operations in distributed computing systems
US20210124773A1 (en) Sharing Filesystems Between Containers
WO2019182796A1 (en) Configurable recovery states
US20140123122A1 (en) System and method for virtual machine offline patching without mount the virtual disk
CN113296891A (en) Multi-scene knowledge graph processing method and device based on platform
WO2022042334A1 (en) Compilation strategy for sharable application snapshot
WO2019182797A1 (en) Free space pass-through
Wang et al. Reg: An Ultra-Lightweight Container That Maximizes Memory Sharing and Minimizes the Runtime Environment
WO2020029995A1 (en) Application upgrading through sharing dependencies

Legal Events

Date Code Title Description
C06 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