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.
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.