CN104991815B - The management method and system of Docker container - Google Patents

The management method and system of Docker container Download PDF

Info

Publication number
CN104991815B
CN104991815B CN201510347731.8A CN201510347731A CN104991815B CN 104991815 B CN104991815 B CN 104991815B CN 201510347731 A CN201510347731 A CN 201510347731A CN 104991815 B CN104991815 B CN 104991815B
Authority
CN
China
Prior art keywords
docker container
creation
physical machine
docker
address
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.)
Active
Application number
CN201510347731.8A
Other languages
Chinese (zh)
Other versions
CN104991815A (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.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510347731.8A priority Critical patent/CN104991815B/en
Publication of CN104991815A publication Critical patent/CN104991815A/en
Application granted granted Critical
Publication of CN104991815B publication Critical patent/CN104991815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides the management methods and system of a kind of Docker container.This method comprises: receiving the triggering command for the creation button for creating at least one Docker container on visualization interface;According to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create the physical machine of Docker container and the IP address of the Docker container;According to the script argument rule of preconfigured execution Docker container creation and the physical machine and the IP address of distribution, the order for executing creation Docker container is generated;And the order is executed, to create Docker container in the physical machine.The present invention creates Docker container using visualization interface, and more intuitively, easy, operability is high, and is capable of providing the creation process of automation, participates in without artificial, efficiency is higher.

Description

The management method and system of Docker container
Technical field
The present invention relates to field of computer technology, the especially a kind of management method and system of Docker container.
Background technique
Docker is the application container engine of an open source, allows developer that can be packaged application and dependence packet can to one In the container of transplanting, then it is published on the Linux machine of any prevalence, also may be implemented to virtualize.Container is to use completely Sandbox mechanism does not have any interface between each other, can be easily in machine and data center almost without performance cost Middle operation.
Currently, needing the multiple physical machines to be scheduled of developer's manual queries when creating Docker container in physical machine Configuration information, as the CPU (Central Processing Unit, central processing unit) of physical machine, memory, hard disk and It has created the quantity etc. of Docker container in the physical machine, and then whether can have been created in the artificial judgment physical machine new Then Docker container is gradually established manually again.For Docker container created, it is still desirable to go to check and manage manually Reason.As it can be seen that the way to manage of Docker container is not flexible at present, intelligence, efficiency is not lower.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the management method and system of the Docker container of problem.
One side according to the present invention provides a kind of management method of Docker container, comprising:
Receive the triggering command for the creation button for creating at least one Docker container on visualization interface;
According to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker container Physical machine and the Docker container IP address;
According to it is preconfigured execution Docker container creation script argument rule and distribution the physical machine and The IP address generates the order for executing creation Docker container;And
The order is executed, to create Docker container in the physical machine.
Optionally, when receiving the triggering for the creation button for creating at least one Docker container on visualization interface When instruction, the method also includes: call at least one creation parameter of Docker container to select for user;User is obtained from institute State the one or more creation parameters chosen at least one creation parameter;
It is described according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker The step of physical machine of container and the IP address of the Docker container, further comprises: according to one or more of creation parameters And preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create the physical machine of Docker container With the IP address of the Docker container.
Optionally, at least one described creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
Optionally, according to one or more of creation parameters and preset scheduling strategy, from physical machine to be scheduled In, distribution the step of capable of creating the physical machine of Docker container, further comprises:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to one or more of creation parameters and the software and hardware configuration parameter of the physical machine to be scheduled, from institute It states in physical machine to be scheduled, distribution can create the physical machine of Docker container.
Optionally, the Docker container includes multiple, generates the step of executing the order for creating Docker container into one Step includes:
For each Docker container, the order for executing and creating the Docker container is generated respectively.
Optionally, executing the step of order further comprises:
Multiple orders are executed using order execution tool SaltStack.
Optionally, the step of executing multiple orders using order execution tool SaltStack further comprises:
The queue of SaltStack task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using SaltStack or sequence executes Multiple orders.
Optionally, the method also includes:
The Docker container of creation is presented on the visualization interface;And
Docker container executive control operation to being presented on the visualization interface.
Optionally, further comprise the step of the Docker container of creation is presented on the visualization interface:
The command execution results for creating Docker container in the physical machine are obtained, and are presented on the visualization interface On.
Optionally, the control operation includes at least one following:
Start, restart, close, delete, suspend.
Another aspect according to the present invention additionally provides a kind of management system of Docker container, comprising:
Command reception component, suitable for receiving for the creation button for creating at least one Docker container on visualization interface Triggering command;
Allocation component is suitable for according to preset scheduling strategy, and from physical machine to be scheduled and IP address, distribution can be created Build the physical machine of Docker container and the IP address of the Docker container;
Formation component, suitable for the script argument rule and distribution according to preconfigured execution Docker container creation The physical machine and the IP address, generate execute creation Docker container order;And
Executive module is adapted for carrying out the order, to create Docker container in the physical machine.
Optionally, the system also includes:
Invocation component is received suitable for working as the creation button for creating at least one Docker container on visualization interface Triggering command when, call Docker container at least one creation parameter for user select;
Securing component, the one or more creation ginsengs chosen from least one described creation parameter suitable for obtaining user Number;
The allocation component, is further adapted for according to one or more of creation parameters and preset scheduling strategy, to In the physical machine and IP address of scheduling, distribution can create the physical machine of Docker container and the IP address of the Docker container.
Optionally, at least one described creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
Optionally, the allocation component is further adapted for:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to one or more of creation parameters and the software and hardware configuration parameter of the physical machine to be scheduled, from institute It states in physical machine to be scheduled, distribution can create the physical machine of Docker container.
Optionally, the formation component is further adapted for:
When the Docker container includes multiple, for each Docker container, generates to execute to create respectively and be somebody's turn to do The order of Docker container.
Optionally, the executive module is further adapted for:
Multiple orders are executed using order execution tool SaltStack.
Optionally, the executive module is further adapted for:
The queue of SaltStack task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using SaltStack or sequence executes Multiple orders.
Optionally, the system also includes:
Component is presented, suitable for the Docker container of creation is presented on the visualization interface;And
Control assembly, suitable for the Docker container executive control operation to being presented on the visualization interface.
Optionally, the presentation component is further adapted for:
The command execution results for creating Docker container in the physical machine are obtained, and are presented on the visualization interface On.
Optionally, the control operation includes at least one following:
Start, restart, close, delete, suspend.
In embodiments of the present invention, it receives for the creation button for creating at least one Docker container on visualization interface Triggering command, according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker appearance The IP address of the physical machine of device and the Docker container.In turn, according to the script of preconfigured execution Docker container creation Parameter rule and the physical machine and IP address of distribution, generate the order for executing creation Docker container.Finally, executing the life It enables, to create Docker container in the physical machine of distribution.It can be seen from the above that the present invention makes use of visualization interfaces to create Docker Container, more intuitively, easy, operability is high.During creating Docker container, according to preset scheduling strategy, automatically Change the physical machine of distribution creation Docker container and the IP address of the Docker container, and generates and execute creation Docker container Order, without manually inquiring the configuration information of multiple physical machines to be scheduled, without artificial judgment condition, then gradually hand Dynamic creation, improves the efficiency of creation.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the management method of Docker container according to an embodiment of the invention;
Fig. 2 shows the flow diagrams of the management method of Docker container according to another embodiment of the present invention;
Fig. 3 shows the flow diagram of the management method of the Docker container of another embodiment according to the present invention;
Fig. 4 shows the structural schematic diagram of the management system of Docker container according to an embodiment of the invention;And
Fig. 5 shows the structural schematic diagram of the management system of Docker container according to another embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to solve the above technical problems, the embodiment of the invention provides a kind of management methods of Docker container.Fig. 1 is shown The flow diagram of the management method of Docker container according to an embodiment of the invention.As shown in Figure 1, this method can wrap Include following steps S102, step S104, step S106 and step S108.
Step S102, the triggering received for the creation button for creating at least one Docker container on visualization interface refer to It enables.
Step S104, according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can be created The IP address of the physical machine of Docker container and the Docker container.
Step S106, according to the script argument rule of preconfigured execution Docker container creation and the object of distribution Reason machine and IP address generate the order for executing creation Docker container.
Step S108 executes the order, to create Docker container in the physical machine of distribution.
In embodiments of the present invention, it receives for the creation button for creating at least one Docker container on visualization interface Triggering command, according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker appearance The IP address of the physical machine of device and the Docker container.In turn, according to the script of preconfigured execution Docker container creation Parameter rule and the physical machine and IP address of distribution, generate the order for executing creation Docker container.Finally, executing the life It enables, to create Docker container in the physical machine of distribution.It can be seen from the above that the present invention makes use of visualization interfaces to create Docker Container, more intuitively, easy, operability is high.During creating Docker container, according to preset scheduling strategy, automatically Change the physical machine of distribution creation Docker container and the IP address of the Docker container, and generates and execute creation Docker container Order, without manually inquiring the configuration information of multiple physical machines to be scheduled, without artificial judgment condition, then gradually hand Dynamic creation, improves the efficiency of creation.
In step s 102, creation button can be the button for creating single Docker container, be also possible to create multiple The button of Docker container.If creating button is the button for creating multiple Docker containers, key batch may be implemented and create, To save the time of creation, improve creation when manager or developer need to create multiple Docker containers Efficiency.
In an embodiment of the present invention, it when creating Docker container, may be implemented to obtain physical machine to be scheduled automatically Current configuration information, such as the CPU of physical machine, memory, hard disk and the quantity for having created in the physical machine Docker container Etc., check the configuration information of multiple physical machines to be scheduled manually without developer.Getting physical machine to be scheduled After current configuration information, the current configuration information of physical machine to be scheduled can be analyzed, and then distribute and can create The physical machine of Docker container.
The scheduling strategy referred in step S104 can be formulated according to the actual demand of manager or developer, Such as the preferential distribution higher physical machine of CPU, perhaps the preferential biggish physical machine of storage allocation or preferentially distribute load capacity Preferably physical machine, etc..For example, physical machine to be scheduled has 3, respectively physical machine A, B and C, it is assumed that this 3 objects The software and hardware configuration parameter of reason machine is all the same, and 30 Docker containers have been created on physical machine A, have created 20 on physical machine B Docker container has created 10 Docker containers on physical machine C.When needing to create 5 Docker containers, then can be This 5 Docker containers are newly created on physical machine C.It is only illustrative it should be noted that enumerate herein, this can not be limited Invention.
In an alternative embodiment of the invention, creation parameter can also be flexibly set, is created in conjunction with the creation parameter of setting Docker container is built, to meet different creation demands.That is, when receiving the wound for Docker container on visualization interface When building the triggering command of button, calls at least one creation parameter of Docker container to select for user, obtain user from least The one or more creation parameters chosen in one creation parameter, and then step S104 can be implemented to be created according to one or more Parameter and preset scheduling strategy are built, from physical machine to be scheduled and IP address, distribution can create Docker container The IP address of physical machine and the Docker container.Creation parameter described herein may include operating system, CPU, memory, hard Disk, number of different computer room creation Docker containers etc..
Further, the embodiment of the invention provides a kind of according to one or more creation parameter and preset scheduling plan Slightly, from physical machine to be scheduled, the optinal plan for distributing the physical machine that can create Docker container in this scenario can To obtain the software and hardware configuration parameter of physical machine to be scheduled, and then according to one or more creation parameter and object to be scheduled The software and hardware configuration parameter of reason machine, from physical machine to be scheduled, distribution can create the physical machine of Docker container.Citing comes It says, physical machine to be scheduled has 2, respectively physical machine 1 and 2, and the operating system of physical machine 1 is Windows, physical machine 2 Operating system is Linux, if including operating system in one or more creation parameters is Linux, distribution is created in physical machine 2 Build the Docker container.Certainly, it enumerates and is only illustrative herein, be not intended to limit the present invention.
When it includes multiple for needing the Docker container created, the life for executing creation Docker container is generated in step S106 Order may be embodied as generating the order for executing and creating the Docker container respectively for each Docker container, that is, each Corresponding one, Docker container executes the order of the Docker container.
Further, in above step S108, executing the order may be embodied as holding using order execution tool SaltStack The multiple orders of row.Here SaltStack is that a very powerful order executes tool, it is one and is very easy to operation, And it can support that distributed command executes and complicated configuration file management can be supported thousands of simultaneously with enhanced scalability The operation of platform server.
It, can be with when executing multiple orders using order execution tool SaltStack in another embodiment of the present invention The queue of SaltStack task execution is added in multiple orders, and then according to specified order executing rule, uses SaltStack It concurrently executes multiple orders or sequence executes multiple orders, to improve the speed of creation.
After creating Docker container, the embodiment of the present invention can also carry out the management such as controlling to the Docker container of creation Operation.Fig. 2 shows the flow diagrams of the management method of Docker container according to another embodiment of the present invention.Such as Fig. 2 institute Show, this method may comprise steps of S202 and step S204.
The Docker container of creation is presented in step S202 on visualization interface.
Step S204, the Docker container executive control operation to being presented on visualization interface.
If creation Docker container be it is multiple, can be presented on visualization interface multiple creations Docker hold Device, and then executive control operation is distinguished to the multiple Docker containers presented on visualization interface.
The present invention is being pre-configured with the program code controlled Docker container from the background, and is integrated in visualization circle On face, when receiving to the triggering command of control button on visualization interface, can caller realize corresponding control Operation, is gone to write program code by developer when without creating Docker container every time, to save programming time, is improved Control efficiency.Further, visualization interface can be web (network) page or other pages, and the invention is not limited thereto.
Further, the Docker container of creation is presented in step S202 on visualization interface, the embodiment of the present invention provides A kind of optional scheme obtains the command execution results for creating Docker container in physical machine, such as creates in this scenario Success, creation failure, the position of physical machine of creation, the configuration information of the physical machine of creation, creation Docker container shape State etc., and be presented on the visualization interface, so that manager or developer can obtain creation Docker container in time Relevant information, and then to Docker container executive control operation, such as start, restart, closing, deleting, suspending control operation.
The realization process of the management method of Docker container of the invention is discussed in detail below by a specific embodiment.? In the embodiment, bulk management operation is carried out to Docker container, mainly includes initial preparation and execution work.
In initial preparation, it is usually required mainly for carry out the following three steps:
1, physical machine pond has been configured, multiple physical machine ponds can be divided into according to computer room, has been obtained by order execution system salt The configuration information of physical machine is taken, and timing updates.
2, prepare IP resource for each configured physical machine pond, and carry out hostname resolution, host name is according to certain Regular automatic distribution.
3, in physical machine with get ready execute container create, restart, deleting, the script of the functions such as start and stop.
In executing work, Fig. 3 shows the stream of the management method of the Docker container of another embodiment according to the present invention Journey schematic diagram.As shown in figure 3, this method may comprise steps of S302, step S304, step S306, step S308, step S310, step S312, step S314 and step S316.
Step S302 receives the triggering command for the creation button of Docker container on visualization interface, calls At least one creation parameter of Docker container is selected for user.
Step S304 obtains one or more creation parameters that user chooses from least one creation parameter.
In the step, creation parameter may include operating system, CPU, memory, hard disk, different computer room creation Docker appearances The number etc. of device.
Step S306, according to one or more creation parameters and preset scheduling strategy, from physical machine to be scheduled and In IP address, distribution can create the physical machine of Docker container and the IP address of the Docker container.
In the step, the software and hardware configuration parameter of available physical machine to be scheduled, and then created according to one or more The software and hardware configuration parameter for building parameter and physical machine to be scheduled, from physical machine to be scheduled, distribution can be created The physical machine of Docker container.
Step S308 joins each Docker container according to the script of preconfigured execution Docker container creation Number rule and the physical machine and IP address of distribution, generate the order for executing and creating the Docker container.
The queue of SaltStack task execution is added in multiple orders by step S310.
Step S312 concurrently executes multiple orders using SaltStack according to specified order executing rule, to realize Docker container is created in corresponding physical machine.
Step S314 obtains the command execution results that Docker container is created in physical machine, and is presented on visualization circle On face.
In the step, command execution results such as create the object for successfully, creating failure, the position of the physical machine of creation, creation The configuration information of reason machine, state of Docker container of creation etc..
Step S316, the Docker container executive control operation to being presented on visualization interface.
In the step, control operation such as starts, restarts, closing, deleting, suspending.
In the present embodiment, realize that the management to Docker container is more intuitive, easy, operational using visualization interface Height, can be avoided manager or developer inputs the case where may malfunctioning when ordering.Further, the present invention is matching in advance from the background The program code controlled Docker container has been set, and has been integrated on visualization interface, when receiving to visualization interface When the triggering command of upper control button, can caller realize corresponding control operation, hold without creation Docker every time It is gone to write program code by developer when device, to save programming time, improves control efficiency.
Based on the same inventive concept, the embodiment of the invention also provides a kind of management systems of Docker container.Fig. 4 is shown The structural schematic diagram of the management system of Docker container according to an embodiment of the invention.Referring to fig. 4, which at least wraps It includes: command reception component 410, allocation component 420, formation component 430 and executive module 440.
Now introduce each composition or function and each portion of device of the management system of the Docker container of the embodiment of the present invention Connection relationship between point:
Command reception component 410, suitable for receiving for the creation for creating at least one Docker container on visualization interface The triggering command of button;
Allocation component 420 is coupled with 410 phase of command reception component, is suitable for according to preset scheduling strategy, to be scheduled In physical machine and IP address, distribution can create the physical machine of Docker container and the IP address of the Docker container;
Formation component 430 is coupled with 420 phase of allocation component, is suitable for being created according to preconfigured execution Docker container Script argument rule and distribution physical machine and IP address, generate execute creation Docker container order;And
Executive module 440 couples with 430 phase of formation component, the order is adapted for carrying out, to create in the physical machine Docker container.
In an embodiment of the present invention, as shown in figure 5, the system that figure 4 above is shown can also include:
Invocation component 450, suitable for referring to when receiving the triggering for the creation button of Docker container on visualization interface When enabling, at least one creation parameter of Docker container is called to select for user;
Securing component 460 is coupled with invocation component 450 and 420 phase of allocation component, be suitable for obtaining user from least one The one or more creation parameters chosen in creation parameter;
Above-mentioned allocation component 420 is further adapted for according to one or more creation parameter and preset scheduling strategy, from wait adjust In the physical machine and IP address of degree, distribution can create the physical machine of Docker container and the IP address of the Docker container.
In an embodiment of the present invention, at least one creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
In an embodiment of the present invention, above-mentioned allocation component 420 is further adapted for:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to one or more creation parameters and the software and hardware configuration parameter of physical machine to be scheduled, from object to be scheduled In reason machine, distribution can create the physical machine of Docker container.
In an embodiment of the present invention, above-mentioned formation component 430 is further adapted for:
When Docker container includes multiple, for each Docker container, generates execute creation Docker appearance respectively The order of device.
In an embodiment of the present invention, above-mentioned executive module 440 is further adapted for:
Multiple orders are executed using order execution system salt tool.
In an embodiment of the present invention, above-mentioned executive module 440 is further adapted for:
The queue of salt task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using salt tool or sequence executes multiple lives It enables.
In an embodiment of the present invention, as shown in figure 5, the system can also include:
Component 470 is presented, is coupled with 440 phase of executive module, suitable for creation is presented on the visualization interface Docker container;And
Control assembly 480 is coupled with 470 phase of component is presented, suitable for holding to the Docker presented on the visualization interface Device executive control operation.
In an embodiment of the present invention, above-mentioned presentation component 470 is further adapted for:
The command execution results for creating Docker container in physical machine are obtained, and are presented on visualization interface.
In an embodiment of the present invention, control operation includes at least one following:
Start, restart, close, delete, suspend.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach It is following the utility model has the advantages that
In embodiments of the present invention, it receives for the creation button for creating at least one Docker container on visualization interface Triggering command, according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker appearance The IP address of the physical machine of device and the Docker container.In turn, according to the script of preconfigured execution Docker container creation Parameter rule and the physical machine and IP address of distribution, generate the order for executing creation Docker container.Finally, executing the life It enables, to create Docker container in the physical machine of distribution.It can be seen from the above that the present invention makes use of visualization interfaces to create Docker Container, more intuitively, easy, operability is high.During creating Docker container, according to preset scheduling strategy, automatically Change the physical machine of distribution creation Docker container and the IP address of the Docker container, and generates and execute creation Docker container Order, without manually inquiring the configuration information of multiple physical machines to be scheduled, without artificial judgment condition, then gradually hand Dynamic creation, improves the efficiency of creation.
Further, the present invention is being pre-configured with the program code controlled Docker container from the background, and is integrated in On visualization interface, when receiving to the triggering command of control button on visualization interface, can caller realize phase The control operation answered, is gone to write program code by developer when without creating Docker container every time, to save programming Time improves control efficiency.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice In the management system of microprocessor or digital signal processor (DSP) to realize Docker container according to an embodiment of the present invention Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word " comprising " does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
So far, although those skilled in the art will appreciate that present invention has been shown and described in detail herein multiple shows Example property embodiment still without departing from the spirit and scope of the present invention, still can according to the present disclosure directly Determine or deduce out many other variations or modifications consistent with the principles of the invention.Therefore, the scope of the present invention is understood that and recognizes It is set to and covers all such other variations or modifications.
The embodiment of the invention also discloses:
A1, a kind of management method of Docker container, comprising:
Receive the triggering command for the creation button for creating at least one Docker container on visualization interface;
According to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker container Physical machine and the Docker container IP address;
According to it is preconfigured execution Docker container creation script argument rule and distribution the physical machine and The IP address generates the order for executing creation Docker container;And
The order is executed, to create Docker container in the physical machine.
A2, method according to a1, wherein
When receiving for the triggering command of creation button for creating at least one Docker container on visualization interface, The method also includes: call at least one creation parameter of Docker container to select for user;Obtain user from it is described at least The one or more creation parameters chosen in one creation parameter;
It is described according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker The step of physical machine of container and the IP address of the Docker container, further comprises: according to one or more of creation parameters And preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create the physical machine of Docker container With the IP address of the Docker container.
A3, the method according to A2, wherein at least one described creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
A4, method according to a3, wherein according to one or more of creation parameters and preset scheduling plan Slightly, from physical machine to be scheduled, distribution the step of capable of creating the physical machine of Docker container, further comprises:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to one or more of creation parameters and the software and hardware configuration parameter of the physical machine to be scheduled, from institute It states in physical machine to be scheduled, distribution can create the physical machine of Docker container.
A5, according to the described in any item methods of A1-A4, wherein the Docker container include it is multiple, generation execute creation The step of order of Docker container, further comprises:
For each Docker container, the order for executing and creating the Docker container is generated respectively.
A6, method according to a5, wherein the step of executing the order further comprises:
Multiple orders are executed using order execution tool SaltStack.
A7, the method according to A6, wherein execute multiple orders using order execution tool SaltStack Step further comprises:
The queue of SaltStack task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using SaltStack or sequence executes Multiple orders.
A8, according to the described in any item methods of A1-A7, wherein further include:
The Docker container of creation is presented on the visualization interface;And
Docker container executive control operation to being presented on the visualization interface.
A9, the method according to A8, wherein in the step of Docker container of creation is presented on the visualization interface Further comprise:
The command execution results for creating Docker container in the physical machine are obtained, and are presented on the visualization interface On.
A10, the method according to A8 or A9, wherein the control operation includes at least one following:
Start, restart, close, delete, suspend.
B11, a kind of management system of Docker container, comprising:
Command reception component, suitable for receiving for the creation button for creating at least one Docker container on visualization interface Triggering command;
Allocation component is suitable for according to preset scheduling strategy, and from physical machine to be scheduled and IP address, distribution can be created Build the physical machine of Docker container and the IP address of the Docker container;
Formation component, suitable for the script argument rule and distribution according to preconfigured execution Docker container creation The physical machine and the IP address, generate execute creation Docker container order;And
Executive module is adapted for carrying out the order, to create Docker container in the physical machine.
B12, the system according to B11, wherein further include:
Invocation component is received suitable for working as the creation button for creating at least one Docker container on visualization interface Triggering command when, call Docker container at least one creation parameter for user select;
Securing component, the one or more creation ginsengs chosen from least one described creation parameter suitable for obtaining user Number;
The allocation component, is further adapted for according to one or more of creation parameters and preset scheduling strategy, to In the physical machine and IP address of scheduling, distribution can create the physical machine of Docker container and the IP address of the Docker container.
B13, system according to b12, wherein at least one described creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
B14, system according to b13, wherein the allocation component is further adapted for:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to one or more of creation parameters and the software and hardware configuration parameter of the physical machine to be scheduled, from institute It states in physical machine to be scheduled, distribution can create the physical machine of Docker container.
B15, according to the described in any item systems of B11-B14, wherein the formation component is further adapted for:
When the Docker container includes multiple, for each Docker container, generates to execute to create respectively and be somebody's turn to do The order of Docker container.
B16, the system according to B15, wherein the executive module is further adapted for:
Multiple orders are executed using order execution tool SaltStack.
B17, the system according to B16, wherein the executive module is further adapted for:
The queue of SaltStack task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using SaltStack or sequence executes Multiple orders.
B18, according to the described in any item systems of B11-B17, wherein further include:
Component is presented, suitable for the Docker container of creation is presented on the visualization interface;And
Control assembly, suitable for the Docker container executive control operation to being presented on the visualization interface.
B19, the system according to B18, wherein the presentation component is further adapted for:
The command execution results for creating Docker container in the physical machine are obtained, and are presented on the visualization interface On.
B20, the system according to B18 or B19, wherein the control operation includes at least one following:
Start, restart, close, delete, suspend.

Claims (20)

1. a kind of management method of Docker container, comprising:
Receive the triggering command for the creation button for creating at least one Docker container on visualization interface;
According to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create the object of Docker container The IP address of reason machine and the Docker container;
According to the script argument rule of preconfigured execution Docker container creation and the physical machine and described of distribution IP address generates the order for executing creation Docker container;And
The order is executed, to create Docker container in the physical machine.
2. according to the method described in claim 1, wherein,
It is described when receiving for the triggering command of creation button for creating at least one Docker container on visualization interface Method further include: at least one creation parameter of Docker container is called to select for user;Obtain user from it is described at least one The one or more creation parameters chosen in creation parameter;
It is described according to preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create Docker container Physical machine and the Docker container IP address the step of further comprise: according to one or more of creation parameters and Preset scheduling strategy, from physical machine to be scheduled and IP address, distribution can create the physical machine of Docker container and be somebody's turn to do The IP address of Docker container.
3. according to the method described in claim 2, wherein, at least one described creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
4. according to the method described in claim 3, wherein, according to one or more of creation parameters and preset scheduling plan Slightly, from physical machine to be scheduled, distribution the step of capable of creating the physical machine of Docker container, further comprises:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to it is one or more of creation parameters and the physical machine to be scheduled software and hardware configuration parameters, from it is described to In the physical machine of scheduling, distribution can create the physical machine of Docker container.
5. method according to claim 1-4, wherein the Docker container include it is multiple, generation execute wound The step of building the order of Docker container further comprises:
For each Docker container, the order for executing and creating the Docker container is generated respectively.
6. according to the method described in claim 5, wherein, the step of executing the order, further comprises:
Multiple orders are executed using order execution tool SaltStack.
7. according to the method described in claim 6, wherein, executing multiple orders using order execution tool SaltStack The step of further comprise:
The queue of SaltStack task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using SaltStack or are sequentially executed multiple The order.
8. according to the method described in claim 1, wherein, further includes:
The Docker container of creation is presented on the visualization interface;And
Docker container executive control operation to being presented on the visualization interface.
9. according to the method described in claim 8, wherein, the step of the Docker container of creation is presented on the visualization interface Suddenly further comprise:
The command execution results for creating Docker container in the physical machine are obtained, and are presented on the visualization interface.
10. method according to claim 8 or claim 9, wherein the control operation includes at least one following:
Start, restart, close, delete, suspend.
11. a kind of management system of Docker container, comprising:
Command reception component, suitable for receiving the touching for the creation button for creating at least one Docker container on visualization interface Send instructions;
Allocation component is suitable for according to preset scheduling strategy, and from physical machine to be scheduled and IP address, distribution can be created The IP address of the physical machine of Docker container and the Docker container;
Formation component, suitable for according to the script argument rule of preconfigured execution Docker container creation and the institute of distribution Physical machine and the IP address are stated, the order for executing creation Docker container is generated;And
Executive module is adapted for carrying out the order, to create Docker container in the physical machine.
12. system according to claim 11, wherein further include:
Invocation component, suitable for working as the touching received for the creation button for creating at least one Docker container on visualization interface When sending instructions, at least one creation parameter of Docker container is called to select for user;
Securing component, the one or more creation parameters chosen from least one described creation parameter suitable for obtaining user;
The allocation component is further adapted for according to one or more of creation parameters and preset scheduling strategy, from wait dispatch Physical machine and IP address in, distribution can create the physical machine of Docker container and the IP address of the Docker container.
13. system according to claim 12, wherein at least one described creation parameter includes at least one following:
The number of operating system, CPU, memory, hard disk, different computer room creation Docker containers.
14. system according to claim 13, wherein the allocation component is further adapted for:
Obtain the software and hardware configuration parameter of physical machine to be scheduled;
According to it is one or more of creation parameters and the physical machine to be scheduled software and hardware configuration parameters, from it is described to In the physical machine of scheduling, distribution can create the physical machine of Docker container.
15. the described in any item systems of 1-14 according to claim 1, wherein the formation component is further adapted for:
When the Docker container includes multiple, for each Docker container, generates execute creation Docker appearance respectively The order of device.
16. system according to claim 15, wherein the executive module is further adapted for:
Multiple orders are executed using order execution tool SaltStack.
17. system according to claim 16, wherein the executive module is further adapted for:
The queue of SaltStack task execution is added in multiple orders;
According to specified order executing rule, multiple orders are concurrently executed using SaltStack or are sequentially executed multiple The order.
18. system according to claim 11, wherein further include:
Component is presented, suitable for the Docker container of creation is presented on the visualization interface;And
Control assembly, suitable for the Docker container executive control operation to being presented on the visualization interface.
19. system according to claim 18, wherein the presentation component is further adapted for:
The command execution results for creating Docker container in the physical machine are obtained, and are presented on the visualization interface.
20. system described in 8 or 19 according to claim 1, wherein the control operation includes at least one following:
Start, restart, close, delete, suspend.
CN201510347731.8A 2015-06-19 2015-06-19 The management method and system of Docker container Active CN104991815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510347731.8A CN104991815B (en) 2015-06-19 2015-06-19 The management method and system of Docker container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510347731.8A CN104991815B (en) 2015-06-19 2015-06-19 The management method and system of Docker container

Publications (2)

Publication Number Publication Date
CN104991815A CN104991815A (en) 2015-10-21
CN104991815B true CN104991815B (en) 2019-01-18

Family

ID=54303631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510347731.8A Active CN104991815B (en) 2015-06-19 2015-06-19 The management method and system of Docker container

Country Status (1)

Country Link
CN (1) CN104991815B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196982B (en) 2016-03-14 2021-01-22 阿里巴巴集团控股有限公司 User request processing method and device
CN105824688B (en) * 2016-03-16 2019-05-28 合一网络技术(北京)有限公司 A method of it solving docker container and starts concurrent bottleneck
CN105897946B (en) * 2016-04-08 2019-04-26 北京搜狐新媒体信息技术有限公司 A kind of acquisition methods and system of access address
CN105763670B (en) * 2016-04-08 2019-01-29 北京搜狐新媒体信息技术有限公司 A kind of method and device for container allocation IP address
CN106067858B (en) * 2016-05-24 2019-02-15 中国联合网络通信集团有限公司 Communication means, apparatus and system between container
CN106095533B (en) * 2016-06-14 2019-06-18 中国联合网络通信集团有限公司 Method of server expansion and device
CN107515783B (en) * 2016-06-16 2021-01-22 阿里巴巴集团控股有限公司 Application container cluster tool-based application container management and control method and device
CN106210162B (en) * 2016-06-29 2019-03-19 中国联合网络通信集团有限公司 Communication control method and device
CN106302448B (en) * 2016-08-15 2020-03-13 中国联合网络通信集团有限公司 Remote access control method and device
CN106161104B (en) * 2016-08-22 2019-06-04 浪潮电子信息产业股份有限公司 Method for automatically configuring network IP (Internet protocol) of Docker container and host based on Docker event
CN106302771A (en) * 2016-08-23 2017-01-04 浪潮电子信息产业股份有限公司 Domain name configuration method of application created based on Docker container
CN106445585B (en) * 2016-08-30 2019-10-01 中国民生银行股份有限公司 Dispositions method and system are applied based on container technique
CN106656980A (en) * 2016-10-21 2017-05-10 郑州云海信息技术有限公司 Method for automatically configuring accessing control of Docker container
CN106970822A (en) * 2017-02-20 2017-07-21 阿里巴巴集团控股有限公司 A kind of container creation method and device
CN107203394B (en) * 2017-04-18 2021-01-01 中国科学院计算技术研究所 High-safety docker container batch deployment method and device
US11023266B2 (en) 2017-05-16 2021-06-01 International Business Machines Corporation Detecting and counteracting a multiprocessor effect in a virtual computing environment
CN107229507A (en) * 2017-05-31 2017-10-03 郑州云海信息技术有限公司 A kind of container mirror image construction method and device
CN107885461B (en) * 2017-10-19 2022-02-01 北京京东尚科信息技术有限公司 Data local storage method and device
CN107896230B (en) * 2017-12-26 2020-04-10 车智互联(北京)科技有限公司 System supporting high-concurrency command execution channel
CN108415795B (en) * 2018-02-12 2019-04-05 人和未来生物科技(长沙)有限公司 A kind of container Dockerfile, container mirror image rapid generation and system
CN108874505A (en) * 2018-06-07 2018-11-23 上海熙菱信息技术有限公司 A kind of Docker container technique packaging method
CN111669355B (en) * 2019-03-08 2023-04-18 厦门网宿有限公司 Method for batch processing of nginx network isolation space and nginx server
US11126457B2 (en) 2019-03-08 2021-09-21 Xiamen Wangsu Co., Ltd. Method for batch processing nginx network isolation spaces and nginx server
CN111399974B (en) * 2019-03-26 2024-05-28 深圳市鸿合创新信息技术有限责任公司 Resource management method and device and electronic equipment
CN110134494B (en) * 2019-05-17 2022-03-25 四川长虹电器股份有限公司 Container automatic management method based on Docker container
US11269596B2 (en) 2019-06-20 2022-03-08 International Business Machines Corporation Automated microservice creation based on user interaction
CN111026499B (en) * 2019-11-13 2021-09-17 广州文远知行科技有限公司 Container processing method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281306A (en) * 2013-05-03 2013-09-04 四川省电力公司信息通信公司 Virtualized infrastructure platform for cloud data centers
CN104657215A (en) * 2013-11-19 2015-05-27 南京鼎盟科技有限公司 Virtualization energy-saving system in Cloud computing
CN104683388A (en) * 2013-11-27 2015-06-03 宁波复博信息技术有限公司 Cloud resource management system and management method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9342343B2 (en) * 2013-03-15 2016-05-17 Adventium Enterprises, Llc Wrapped nested virtualization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281306A (en) * 2013-05-03 2013-09-04 四川省电力公司信息通信公司 Virtualized infrastructure platform for cloud data centers
CN104657215A (en) * 2013-11-19 2015-05-27 南京鼎盟科技有限公司 Virtualization energy-saving system in Cloud computing
CN104683388A (en) * 2013-11-27 2015-06-03 宁波复博信息技术有限公司 Cloud resource management system and management method thereof

Also Published As

Publication number Publication date
CN104991815A (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN104991815B (en) The management method and system of Docker container
KR102501992B1 (en) Data processing method and related products
US10606662B2 (en) System and method for processing task resources
US10365626B2 (en) Extending the functionality of a programmable logic controller (PLC) with apps without changing the PLC programming
CN105183564B (en) Equipment scheduling method, apparatus and system based on cloud test platform
EP4046017A1 (en) Systems and methods for cross-platform scheduling and workload automation
CN103092670A (en) Cross-platform virtual computing resource management method under cloud computing environment
CN103064742A (en) Automatic deployment system and method of hadoop cluster
CN111897622A (en) High-throughput computing method and system based on container technology
CN103645909A (en) Handling method and device for timed task
CN112346752A (en) Software environment rapid deployment method based on jenkins and K3S
US11645098B2 (en) Systems and methods to pre-provision sockets for serverless functions
TW202102952A (en) Robotic resource task cycle management and control method and apparatus
EP2872993A1 (en) Workflow compilation
CN114064213B (en) Quick arranging service method and system based on Kubernets container environment
CN114880100A (en) Container dynamic scheduling method and device, computer equipment and storage medium
CN109960517A (en) Production method, device, system and the storage medium of image file
US11343305B2 (en) Systems and methods of automating a file download activity
CN102420709A (en) Method and equipment for managing scheduling task based on task frame
CN111488181A (en) Task scheduling method and device, storage medium and server
CN107025134A (en) The method of database management systems and compatible multitype database
CN110569104A (en) Management method and computer storage medium for task training in deep learning system
CN104572275B (en) A kind of process loading method, apparatus and system
WO2018096717A1 (en) Control system and control method
CN107786367B (en) Virtual network element configuration method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220729

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230713

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

TR01 Transfer of patent right