CN107454188A - A kind of container creation method and system - Google Patents
A kind of container creation method and system Download PDFInfo
- Publication number
- CN107454188A CN107454188A CN201710749279.7A CN201710749279A CN107454188A CN 107454188 A CN107454188 A CN 107454188A CN 201710749279 A CN201710749279 A CN 201710749279A CN 107454188 A CN107454188 A CN 107454188A
- Authority
- CN
- China
- Prior art keywords
- container
- local mirror
- mirror site
- image file
- resource information
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of container creation method and system.It is related to field of computer technology;Solve the problems, such as that create container processes lowly can not even be completed by network connection limit efficiency.This method includes:Container request to create is received, the resource information required for container to be created is carried in the container request to create;Connect local mirror site;According to the resource information, the image file matched in the local mirror site with the resource information is searched;The image file that matching obtains is downloaded, creates container.Technical scheme provided by the invention is applied to the management of container instance, realizes and is not obtained by the mirror image of internet quality of connection limitation.
Description
Technical field
The present invention relates to computer technology, espespecially a kind of container creation method and system.
Background technology
With the extensive use and continuous development of cloud computing technology, the use of container is we provided great convenience,
He has the advantages such as continuous integrating, Version Control, portability, isolation, security, and container technique quickly changes public affairs
Department and user create, and issue, run the mode of Distributed Application, constantly to cloud computing industry it will be brought due in future
Value.
When creating container, it is necessary to download image file, remote download image file is limited by network transmission resource, speed
Degree is slower.And when network goes wrong, image file can not be just downloaded, and then lead to not successfully create container.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of container creation method and system, by being deployed in this
The Container Management subsystem on ground and local mirror site, establish the image file download mechanism based on Intranet connection, realize not by
The mirror image of internet quality of connection limitation obtains, and solving establishment container processes lowly even can not by network connection limit efficiency
The problem of completion.
In order to reach the object of the invention, the invention provides a kind of container creation method, including:
Container request to create is received, the resource information required for container to be created is carried in the container request to create;
Connect local mirror site;
According to the resource information, the image file matched in the local mirror site with the resource information is searched;
The image file that matching obtains is downloaded, creates container.
Preferably, include according to the resource information, the step of the image file for searching local mirror site matching:
Determine resource quantity and resource type corresponding to the resource information;
From the local mirror site, the image file matched with the resource quantity and resource type is called.
Preferably, the step of connection local mirror site is specially:
The local mirror site is preferentially connected by Intranet.
Preferably, this method also includes:
Dispose the Kubernetes environment for creating container.
Preferably, this method also includes:
Dispose local mirror site.
Present invention also offers a kind of container to create system, including is deployed in the Container Management subsystem and sheet of same Intranet
Ground mirror site;
The Container Management subsystem, for receiving container request to create, carried in the container request to create to be created
Resource information required for container, the local mirror site is connected, according to the resource information, searched in the local mirror site
The image file matched with the resource information, the image file that matching obtains is downloaded, create container;
The local mirror site, for providing image file to the Container Management subsystem.
Preferably, the Container Management subsystem, specifically for determining resource quantity and money corresponding to the resource information
Source Type, from the local mirror site, call the image file matched with the resource quantity and resource type.
Preferably, the Container Management subsystem is connected by Intranet with the local mirror site.
Preferably, the Container Management subsystem is realized by Kubernetes environment.
The invention provides a kind of container creation method and system, after container request to create is received, according to the container
The resource information required for container to be created is carried in request to create, connects local mirror site, is searched in the local mirror site
The image file matched with the resource information, and the image file that matching obtains is downloaded, create container.By being deployed in local
Container Management subsystem and local mirror site, establish the image file download mechanism based on Intranet connection, realize not by mutual
The mirror image of networking quality of connection limitation obtains, and solving establishment container processes lowly even can not be complete by network connection limit efficiency
Into the problem of.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is a kind of schematic flow sheet for container creation method that embodiments of the invention one provide;
Fig. 2 is that a kind of container that embodiments of the invention two provide creates the principle schematic that system completes container establishment;
Fig. 3 is the structural representation that a kind of container that embodiments of the invention three provide creates system.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of
Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein
Sequence performs shown or described step.
When creating container, it is necessary to download image file, remote download image file is limited by network transmission resource, speed
Degree is slower.And when network goes wrong, image file can not be just downloaded, and then lead to not successfully create container.
, will be by such as the embodiment provides a kind of container creation method and system in order to solve the above problems
The Container Management system and the container implementation of local mirror site that Kubernetes is realized.User can be according to increasing income
The establishment of container and use are completed in Kubernetes instruments and the container mirror image warehouse oneself locally built, in no outer net
Under conditions of the container instance that can be used can also be created that based on the mirror image in local container mirror image warehouse, eliminate the reliance on outer
Net and other mirror image warehouses, do not limited by outer net connection.
First with reference to accompanying drawing, embodiments of the invention one are illustrated.
The embodiments of the invention provide a kind of container creation method, affixed one's name in the middle part of Intranet for creating container
Kubernetes environment and local mirror site, Kubernetes environment are connected with local mirror site by Intranet, are completed data and are passed
It is defeated.Using this method complete container create flow as shown in figure 1, including:
Step 101, container request to create is received, the resource required for container to be created is carried in the container request to create
Information;
Step 102, the local mirror site of connection;
In this step, the local mirror site is preferentially connected by Intranet.
Preferably, also other mirror sites can be connected by outer net when local mirror site can not connect.
Step 103, according to the resource information, search the mirror image matched in the local mirror site with the resource information
File;
This step specifically includes:
1st, resource quantity and resource type corresponding to the resource information are determined;
2nd, from the local mirror site, the image file matched with the resource quantity and resource type is called.
Step 104, the image file that matching obtains is downloaded, create container.
Below in conjunction with the accompanying drawings, embodiments of the invention two are illustrated.
The embodiments of the invention provide a kind of container to create system, including Kubernetes environment and local mirror site, with
Kubernetes environment contains the image file that can be used, realized as Container Management subsystem, local mirror site internal memory
Journey schematic diagram is as shown in Figure 2:
1) Kubernetes environment, which obtains, creates container request;
2) Kubernetes environment asks image download to local mirror site;
3) local mirror site respond request, corresponding image file is returned to Kubernetes environment;
4) Kubernetes environment is completed to create container after image file is downloaded;
5) container, which creates, completes.
Below in conjunction with the accompanying drawings, embodiments of the invention three are illustrated.
The embodiments of the invention provide a kind of container to create system, and its framework is as shown in figure 3, including being deployed in same Intranet
Container Management subsystem and local mirror site;
The Container Management subsystem, for receiving container request to create, carried in the container request to create to be created
Resource information required for container, the local mirror site is connected, according to the resource information, searched in the local mirror site
The image file matched with the resource information, the image file that matching obtains is downloaded, create container;
The local mirror site, for providing image file to the Container Management subsystem.
Preferably, the Container Management subsystem, specifically for determining resource quantity and money corresponding to the resource information
Source Type, from the local mirror site, call the image file matched with the resource quantity and resource type.
Preferably, the Container Management subsystem is connected by Intranet with the local mirror site.
Preferably, the Container Management subsystem is realized by Kubernetes environment.
The embodiment provides a kind of container creation method and system, after container request to create is received, according to
The resource information required for container to be created is carried in the container request to create, connects local mirror site, searches the local
The image file matched in mirror site with the resource information, and the image file that matching obtains is downloaded, create container.Pass through portion
The Container Management subsystem in local and local mirror site are affixed one's name to, establishes the image file download mechanism based on Intranet connection, is realized
, solve the problems, such as that create container processes lowly can not even be completed by network connection limit efficiency.By using
Kubernetes environment and local mirror site realize the establishment of container instance, and Kubernetes environment arrives local mirror site first
Mirror image is downloaded, corresponding container is then created by the mirror image of download, during whole container example creates, it is only necessary to
Ensure the unobstructed can of internal network between Kubernetes environment and local mirror site, without relying on outer net, only require this
Ground mirror site has available image file, eliminates the reliance on other mirror sites.The dependence to can use outer net has not only been broken away from, moreover,
Because intranet data transmission speed is significantly larger than the transmission speed of outer net, therefore reduce the time cost of container instance establishment.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use
Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention
On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (9)
- A kind of 1. container creation method, it is characterised in that including:Container request to create is received, the resource information required for container to be created is carried in the container request to create;Connect local mirror site;According to the resource information, the image file matched in the local mirror site with the resource information is searched;The image file that matching obtains is downloaded, creates container.
- 2. container creation method according to claim 1, it is characterised in that according to the resource information, search local mirror As storehouse match image file the step of include:Determine resource quantity and resource type corresponding to the resource information;From the local mirror site, the image file matched with the resource quantity and resource type is called.
- 3. container creation method according to claim 1, it is characterised in that described the step of connecting local mirror site is specific For:The local mirror site is preferentially connected by Intranet.
- 4. container creation method according to claim 1, it is characterised in that this method also includes:Dispose the Kubernetes environment for creating container.
- 5. container creation method according to claim 1, it is characterised in that this method also includes:Dispose local mirror site.
- 6. a kind of container creates system, it is characterised in that including the Container Management subsystem for being deployed in same Intranet and local mirror As storehouse;The Container Management subsystem, for receiving container request to create, container to be created is carried in the container request to create Required resource information, connect the local mirror site, according to the resource information, search in the local mirror site with institute The image file of resource information matching is stated, downloads the image file that matching obtains, creates container;The local mirror site, for providing image file to the Container Management subsystem.
- 7. container according to claim 6 creates system, it is characterised in thatThe Container Management subsystem, specifically for determining resource quantity and resource type corresponding to the resource information, from institute State in local mirror site, call the image file matched with the resource quantity and resource type.
- 8. container according to claim 6 creates system, it is characterised in that the Container Management subsystem by Intranet with The local mirror site is connected.
- 9. container according to claim 6 creates system, it is characterised in thatThe Container Management subsystem is realized by Kubernetes environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710749279.7A CN107454188A (en) | 2017-08-28 | 2017-08-28 | A kind of container creation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710749279.7A CN107454188A (en) | 2017-08-28 | 2017-08-28 | A kind of container creation method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107454188A true CN107454188A (en) | 2017-12-08 |
Family
ID=60494344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710749279.7A Pending CN107454188A (en) | 2017-08-28 | 2017-08-28 | A kind of container creation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107454188A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170511A (en) * | 2017-12-26 | 2018-06-15 | 深信服科技股份有限公司 | A kind of docker mirror images acquisition methods, device, equipment and storage medium |
CN108401031A (en) * | 2018-03-13 | 2018-08-14 | 深圳市腾讯计算机系统有限公司 | A kind of image file transmission method, device and storage medium |
CN109491677A (en) * | 2018-11-15 | 2019-03-19 | 郑州云海信息技术有限公司 | A kind of method and apparatus for installing software for virtual machine |
US11709665B2 (en) | 2021-04-01 | 2023-07-25 | Red Hat, Inc. | Hybrid approach to performing a lazy pull of container images |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060288226A1 (en) * | 2005-06-15 | 2006-12-21 | Stelor Productions, Llc. | System and method for establishing and authorizing a security code |
CN105577779A (en) * | 2015-12-21 | 2016-05-11 | 用友网络科技股份有限公司 | Method and system for containerized deployment of large enterprise private cloud |
CN105677479A (en) * | 2015-12-30 | 2016-06-15 | 北京奇艺世纪科技有限公司 | Method and device for implementing parallel running of GPU operation programs |
CN106020930A (en) * | 2016-05-13 | 2016-10-12 | 深圳市中润四方信息技术有限公司 | Application container based application management method and system |
CN106060122A (en) * | 2016-05-20 | 2016-10-26 | 北京奇虎科技有限公司 | Docker container uploading/downloading feature control method and device |
CN106790660A (en) * | 2017-01-18 | 2017-05-31 | 咪咕视讯科技有限公司 | A kind of dispositions method and device for realizing distributed memory system |
CN106873975A (en) * | 2016-12-30 | 2017-06-20 | 武汉默联股份有限公司 | Devops based on Docker persistently pays and automated system and method |
CN106970822A (en) * | 2017-02-20 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of container creation method and device |
-
2017
- 2017-08-28 CN CN201710749279.7A patent/CN107454188A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060288226A1 (en) * | 2005-06-15 | 2006-12-21 | Stelor Productions, Llc. | System and method for establishing and authorizing a security code |
CN105577779A (en) * | 2015-12-21 | 2016-05-11 | 用友网络科技股份有限公司 | Method and system for containerized deployment of large enterprise private cloud |
CN105677479A (en) * | 2015-12-30 | 2016-06-15 | 北京奇艺世纪科技有限公司 | Method and device for implementing parallel running of GPU operation programs |
CN106020930A (en) * | 2016-05-13 | 2016-10-12 | 深圳市中润四方信息技术有限公司 | Application container based application management method and system |
CN106060122A (en) * | 2016-05-20 | 2016-10-26 | 北京奇虎科技有限公司 | Docker container uploading/downloading feature control method and device |
CN106873975A (en) * | 2016-12-30 | 2017-06-20 | 武汉默联股份有限公司 | Devops based on Docker persistently pays and automated system and method |
CN106790660A (en) * | 2017-01-18 | 2017-05-31 | 咪咕视讯科技有限公司 | A kind of dispositions method and device for realizing distributed memory system |
CN106970822A (en) * | 2017-02-20 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of container creation method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170511A (en) * | 2017-12-26 | 2018-06-15 | 深信服科技股份有限公司 | A kind of docker mirror images acquisition methods, device, equipment and storage medium |
CN108401031A (en) * | 2018-03-13 | 2018-08-14 | 深圳市腾讯计算机系统有限公司 | A kind of image file transmission method, device and storage medium |
CN108401031B (en) * | 2018-03-13 | 2020-12-15 | 深圳市腾讯计算机系统有限公司 | Mirror image file transmission method, device and storage medium |
CN109491677A (en) * | 2018-11-15 | 2019-03-19 | 郑州云海信息技术有限公司 | A kind of method and apparatus for installing software for virtual machine |
US11709665B2 (en) | 2021-04-01 | 2023-07-25 | Red Hat, Inc. | Hybrid approach to performing a lazy pull of container images |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107454188A (en) | A kind of container creation method and system | |
US8631071B2 (en) | Recognition of and support for multiple versions of an enterprise canonical message model | |
CN107124278B (en) | Service processing method and device and data sharing system | |
EP2220571B1 (en) | Method and apparatus for providing api service and making api mash-up, and computer readable recording medium thereof | |
KR20200042629A (en) | Method for generating annotation and image based on touch of mobile device to learn artificial intelligence and apparatus therefor | |
CN104572072B (en) | A kind of language transfer method and equipment to the program based on MVC pattern | |
Zhao et al. | Packaging and sharing machine learning models via the acumos ai open platform | |
US20120209957A1 (en) | Mobile bookmarks | |
US20140082615A1 (en) | Provisioning a virtual machine from one or more vm images | |
CN105760159A (en) | Website developing method and system | |
CN112231663A (en) | Data acquisition method, device, equipment and storage medium combining RPA and AI | |
CN107404520A (en) | A kind of management method and system based on cloud management platform | |
CN107071036A (en) | A kind of method, the webserver and system for downloading driving file | |
CN107077500A (en) | Extract similar group's element | |
CN109165169A (en) | A kind of test branch management method and system | |
CN107533696A (en) | It is automatically that content is related to personnel | |
CN107566518A (en) | The method and apparatus of management equipment information during installation file | |
CN105141495B (en) | Virtual device creating method and gateway device | |
CN110851211A (en) | Method, apparatus, electronic device, and medium for displaying application information | |
CN112115217A (en) | Data processing method and device for high-precision map, electronic equipment and storage medium | |
Cozzolino et al. | Edge chaining framework for black ice road fingerprinting | |
CN106339105A (en) | Method and device for identifying phonetic information | |
CN111403011A (en) | Registered department pushing method, device and system, electronic equipment and storage medium | |
CN106331051A (en) | File transmission method and system, file receiving device and file transmission device | |
CN109194742A (en) | A kind of connection method, device and the storage medium of virtual machine console |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171208 |