CN108628664A - A kind of method and device of container processing - Google Patents

A kind of method and device of container processing Download PDF

Info

Publication number
CN108628664A
CN108628664A CN201810449642.8A CN201810449642A CN108628664A CN 108628664 A CN108628664 A CN 108628664A CN 201810449642 A CN201810449642 A CN 201810449642A CN 108628664 A CN108628664 A CN 108628664A
Authority
CN
China
Prior art keywords
container
server
former container
former
image file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810449642.8A
Other languages
Chinese (zh)
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 Chen Sen Century Polytron Technologies Inc
Original Assignee
Beijing Chen Sen Century Polytron Technologies Inc
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 Chen Sen Century Polytron Technologies Inc filed Critical Beijing Chen Sen Century Polytron Technologies Inc
Priority to CN201810449642.8A priority Critical patent/CN108628664A/en
Publication of CN108628664A publication Critical patent/CN108628664A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

This application discloses a kind of methods of container processing, including:It determines and needs newer at least one former container;According to the correspondence of preset former container and the server for disposing the former container, the server of at least one operation former container is determined;Indicate former container described in the server update of the operation former container.To solve the problems, such as to be easy error in update or rollback container processes.

Description

A kind of method and device of container processing
Technical field
This application involves Internet technical fields, and in particular to a kind of method of container processing.The application is related to one simultaneously The device of kind container processing.
Background technology
Application is disposed and run by container technique, is in current internet and cloud computing industry to provide business service Frequently with technical solution, docker container techniques are common container techniques.So-called application includes website and other offers The application program of service.It provides in the system of application service and usually there will be tens or hundreds and thousands of docker containers, have Docker containers need to be deployed in multiple servers, such as user authentication, member are supplemented this kind of business for requiring high availability with money and answered With needing to be deployed to multiple servers.Due to often relating to update or the rollback of application in practice, answer disposing and running The layout of docker containers is the important content of container processing.
Programming facility docker compose layout docker containers are generally used at present.
In the prior art, programming facility docker compose can only layout single machine container, when needing more of layout service When container on device, which server the docker containers that user needs to predefine update or retract have been deployed in, at every Server installs docker compose tools, thus cannot in a manner of global batch layout different server container, There is a problem of in update or rollback container processes error-prone.
Invention content
The application provides a kind of method of container processing, to solve to be easy asking for error in update or rollback container processes Topic.
The application provides a kind of method of container processing, including:
It determines and needs newer at least one former container;
According to the correspondence of preset former container and the server for disposing the former container, at least one operation institute is determined State the server of former container;
Indicate former container described in the server update of the operation former container.
Optionally, former container described in the server update of the instruction operation former container, including:
Indicate that the server of the operation former container stops the former container;Alternatively,
Indicate that the server of the operation former container deletes the former container;Alternatively,
Indicate the startup of server new container of the operation former container.
Optionally, the startup of server new container of the instruction operation former container, including:
Indicate that the server of the operation former container from the entity for being stored with image file, is obtained for updating former appearance The target image file of device;
Indicate that the server of the operation former container uses the target mirror image file start new container.
Optionally, the method for container processing further includes:
Test command is sent to the server of the operation former container;
The server for receiving the operation former container is directed to the implementing result of the test command;
According to the command execution results, judge whether the server of the operation former container is successfully updated the original Container;
If judging, the server of the operation former container updates the former container not successfully, stops updating the original Container.
Optionally, the method for container processing further includes:
If judging, the server of the operation former container updates the former container not successfully, sends out alert notice.
Optionally, the newer at least one former container of the determining needs, including:
Receive the instruction of more new container;
According to described instruction, the newer former container of the needs is determined.
Optionally, the method for container processing further includes:
Obtain the program bag for obtaining updated container;
According to described program packet, the target image file for updating the former container is built.
Optionally, the method for container processing further includes:
It indicates the entity of structure image file, obtains the program bag for obtaining updated container;
The entity for indicating the structure image file, the target according to described program packet structure for updating the former container Image file.
Optionally, the method for container processing further includes:
By the target mirror image file push to the entity of energy memory image file;Or,
The entity for indicating the structure image file, by the target mirror image file push to the reality of energy memory image file Body.
Optionally, the entity of the entity for being stored with image file and/or energy memory image file, is image file storehouse Library.
Optionally, the container is the operation ring of the specific application and specific application that are run based on docker engine starts Border.
The application also provides a kind of device of container processing, including:
Container determination unit to be updated needs newer at least one former container for determining;
Destination server determination unit, for corresponding with the server for disposing the former container according to preset former container Relationship determines the server of at least one operation former container;
Updating unit is used to indicate former container described in the server update of the operation former container.
The application also provides a kind of electronic equipment, including:
Memory and processor;
For the memory for storing computer executable instructions, the processor is executable for executing the computer Instruction:
It determines and needs newer at least one former container;
According to the correspondence of preset former container and the server for disposing the former container, at least one operation institute is determined State the server of former container;
Indicate former container described in the server update of the operation former container.
The application also provides a kind of storage device, is stored with instruction, described instruction can be loaded and execute by processor with Lower step:
It determines and needs newer at least one former container;
According to the correspondence of preset former container and the server for disposing the former container, at least one operation institute is determined State the server of former container;
Indicate former container described in the server update of the operation former container.
Compared with prior art, the application has the following advantages:
The method and device of container processing provided by the present application, by according to preset former container and the deployment former container Server correspondence, determine and need which server the docker containers for updating or retracting have been deployed in, with global The container of these servers of mode batch layout to the docker containers that needs to update or retract update or retract accordingly Operation, to solve the problems, such as to be easy error in update or rollback container processes.
Description of the drawings
Fig. 1 is the process chart of the method for the container processing that the application first embodiment provides;
Fig. 2 is the flow chart of the actual deployment system of the method for the container processing that the application first embodiment provides;
Fig. 3 is the schematic diagram of the device for the container processing that the application second embodiment provides.
Specific implementation mode
Many details are elaborated in the following description in order to fully understand the application.But the application can be with Much implement different from other manner described here, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
The application provides a kind of method of container processing.The application is related to a kind of device of container processing simultaneously.Below Embodiment in be described in detail one by one.
The application first embodiment provides a kind of method of container processing.
It is illustrated below in conjunction with Fig. 1 to Fig. 2 methods handled the container that the application first embodiment provides.
The method of container processing shown in FIG. 1, including:Step S101 to step S103.
Step S101 is determined and is needed newer at least one former container.
In the embodiment of the present application, the container is the specific application and specific application run based on docker engine starts Running environment.The docker engines, the application container engine being operate on operating system nucleus.It is provided by container special Surely the host of the business service or function applied is known as docker hosts.
By particular application deployment and run on docker hosts, including:By specific application, specific application dependence library and Configuration parameter when operation is packaged into image file (image or images);Docker hosts pass through according to the image file Docker creates from system available computational resources or starts running example, to reach the operation specific application to provide industry The purpose of business service.Wherein, the running example is the specific application and specific application run based on docker engine starts Running environment container, also referred to as docker containers;Environment ginseng when the configuration parameter is the docker containers operation Number, for example, anonymous volume, environmental variance, user etc..Each docker containers are owned by the user's space of isolation, therefore same Multiple docker containers can be run in host system.Docker containers need not beat operating system nucleus or virtual hardware Packet, therefore compared to virtual machine more lightweight, start speed quickly.
The method of container provided by the embodiments of the present application processing, can be deployed in docker hosts, can also be deployed in The distance host or server of docker main-machine communications.When the business service that specific application provides needs adjustment, for example, newly-increased Function deletes function or changes flow, then needs to handle the container for providing the business service by container layout.It is so-called Container layout refers to the processing operation carried out to container, including following any operations:Started using specified image file and is held Device stops container, deletes container.
In the embodiment of the present application, the update that former container is realized in container layout is carried out to former container, to reach adjustment business The purpose of service.The original container is to need newer container, and updated container is known as new container, the business that new container provides Service is the business service after adjustment as desired.
This step, which is to determine, needs newer former container.
The specific application for providing business service includes often a large amount of containers, and some containers need to be deployed in multiple servers On, such as user authentication, member supplement with money and this kind of the business service of high availability required to need to be deployed to multiple servers.The application It is determined by following processing in embodiment and needs newer at least one former container:
Receive the instruction of more new container;
According to described instruction, the newer former container of the needs is determined.
In actual deployment, the host or server of the method for the container processing are deployed, it can be defeated by handling interface The instruction for entering more new container can also be the host or server communication received with the method for deploying the container processing Entity send more new container instruction.Preferably, the determination is described needs newer former container, including from the update The title for needing newer former container is obtained in the instruction of container, to be subsequently used for determining the service of the deployment former container Device.
Step S102 is determined at least according to the correspondence of preset former container and the server for disposing the former container The server of one operation former container.
This step, which is to determine, needs newer former container to be deployed on which server, to update in corresponding server It is described to need newer former container.These servers are the docker hosts for running docker containers.
The correspondence of the preset former container and the server for disposing the former container, can be pre-stored in the deployment Can also be pre-stored in deploy what the container was handled with described on the host or server of the method for the container processing The host or server communication of method are physically.
In the embodiment of the present application, pre-stored preset former container is obtained from database automatically and disposes the former appearance The correspondence of the server of device determines which server the former container has been deployed on according to the correspondence.For example, The Container Name and the corresponding server of the Container Name of advance typing in database.Correspondingly, being read from database advance The correspondence of the preset former container and the server for disposing the former container of storage, determines described at least one operation The server of former container.Specifically, according to the title for the newer former container of needs that step S102 is determined, inquired from database Go out to dispose the server for needing newer former container.For example, Container Name is the container of user authentication, it is deployed to server A and server B.
Preferably, further include the server for obtaining former container in the corresponding deployment former container in the embodiment of the present application On deployment way.For example, configuration file of the former container on the server of the corresponding deployment former container, including disposed Journey, listening port start the contents such as order, and the configuration file prestores in the database, is determining the deployment former container The configuration file is got when server, then user need not compile by hand described in layout on the server when former container Row avoids manual operations from being easy error and slow-footed problem.
Since the former container may be deployed in multiple servers, such as in view of the high availability of service, user supplements with money Container be deployed in multiple servers, therefore, closed according to preset former container the corresponding of server with the former container is disposed System determines the server of at least one operation former container, enables to user that need not confirm one by one by hand and need layout The server of former container, avoid by hand one by one determine need the server of layout original container be likely to occur omission risk and Slow-footed problem.
In addition, obtaining the correspondence of preset former container and the server for disposing the former container automatically so that user It when layout container, does not need which server former container described in manual query has been deployed to, avoids by hand inquiry deployment one by one The server of the former container may caused by the risk omitted and slow-footed problem.
Step S103 indicates former container described in the server update of the operation former container.
This step is the update former container, achievees the purpose that adjust business service.
Specific to the embodiment of the present application, former container described in the server update of the instruction operation former container, Including:
Indicate that the server of the operation former container stops the former container;Alternatively,
Indicate that the server of the operation former container deletes the former container;Alternatively,
Indicate the startup of server new container of the operation former container.
For example, the server of the former container described to the operation issues the order for stopping the former container or deletes the original The order of container.
In the embodiment of the present application, the server of the operation former container is also named due to running docker containers Docker hosts.The host or server for disposing the method for the container processing indicate the service of the operation former container Device carries out the operations such as stopping, the deletion of former container, need not install client on the server of the operation former container Program, can directly handle can be with the host for the method for disposing the container processing or the different zones server of server communication All docker containers.
In the embodiment of the present application, indicate that the server of the operation former container is opened using specified target image file Dynamic new container, to adjust the business service that former container provides as desired.Specifically, the instruction operation former appearance The startup of server new container of device, including:
Indicate that the server of the operation former container from the entity for being stored with image file, is obtained for updating former appearance The target image file of device;
Indicate that the server of the operation former container uses the target mirror image file start new container.
Preferably, the entity for being stored with image file is image file warehouse.
In actual use, the version according to specified target image file is new and old, updates former container and is specifically divided into two kinds of fields Scape:When specified target image file is the new image file according to updated program construction, updates former container and be also known as Upgrade container.When specified target image file is history image file, updates former container and be also known as rollback container.
In the embodiment of the present application, for the scene of rollback container, including:
The corresponding at least one history image release recently of former container is inquired in image file warehouse, for example, supporting to look into Ask 15 history image releases;
Select the corresponding image file of the image release to be retracted;
Indicate that the server of the operation former container pulls the image file chosen from the mirror image warehouse;
Indicate that the server of the operation former container starts new container using the image file chosen.
In the embodiment of the present application, for upgrading the scene of container, a specific implementation of the method for the process container Mode further includes the target image file built for updating the former container.Specifically, including following processing:
Obtain the program bag for obtaining updated container;
According to described program packet, the target image file for updating the former container is built.
The target image file for updating the former container can be the method by deploying the container processing Entity structure, can also be by structure image file entity structure.When using the entity structure institute by structure image file When stating the mode of target image file, the method for the container processing specifically includes following processing:
It indicates the entity of structure image file, obtains the program bag for obtaining updated container;
The entity for indicating the structure image file, the target according to described program packet structure for updating the former container Image file.
In the embodiment of the present application, the target image file built is stored into the entity to energy memory image file, Specific implementation mode includes any one in following two kinds of processing modes:
Mode one, by the target mirror image file push to can memory image file entity;
If target image file described in the host or server construction of the method by disposing the container processing, uses Processing mode one.
The entity of mode two, the instruction structure image file, by the target mirror image file push to energy memory image The entity of file.
If building the target image file by the entity of structure image file, processing mode two is used.
Preferably, the entity of the storage energy memory image file, is image file warehouse, uses the image file storehouse It library can easily management service image file.Correspondingly, the startup of server of the instruction operation former container newly holds Device, including:Indicate that the server of the operation former container from image file warehouse, obtains the target for updating former container Image file.
In the embodiment of the present application, also whether virtual container is detected after using the target mirror image file start new container Start successfully.It specifically includes:
Test command is sent to the server of the operation former container;
The server for receiving the operation former container is directed to the implementing result of the test command;
According to the command execution results, judge whether the server of the operation former container is successfully updated the original Container;
If judging, the server of the operation former container updates the former container not successfully, stops updating the original Container.
If judging, the server of the operation former container updates the former container not successfully, sends out alert notice.
The method of container processing, can handle all docker containers of different zones server, need not be Client-side program is installed on docker hosts.
It is exemplified below:Fig. 2 is the process chart of a specific deployment system of the embodiment of the present application.The container processing Method realize that dockercon tools 201 are deployed in a server by dockercon tools 201.Packaged service device 202 Order for issuing the former container of update.Database 203 has prestored the former container and the server pair of disposing the former container It should be related to.The warehouses Habor 204 are used to store the new image file and history image file of the former container.Server A is One server for deploying the former container determined.
Illustrate that the more new technological process of former container is as follows for needing to update the upgrading of the container of former container of entitled chains:
Dockercon tools 201 receive the instruction for the update chains that packaged service device 202 issues;
Dockercon tools 201 obtain new chains program bags from packaged service device 202;
Dockercon tools 201 build the new image files of chains and are pushed to the warehouses Harbor 204;
Dockercon tools 201 go database 203 to inquire the server list that chains programs correspond to deployment, wherein wrapping Include server A;
Dockercon tools 201 indicate that server A stops, deleting old container, are sent to server A and start new container Chains orders;
Server A pulls the new image files of chains from mirror image warehouse, starts container chains;
Dockercon tools 201 detect whether new chains containers start success, if starting failure, stop updating, and send out Go out alert notice.
Corresponding with a kind of embodiment of method of container processing provided by the present application, the application second embodiment provides A kind of device of container processing.
With reference to Fig. 3, it illustrates according to a kind of schematic device of container processing provided by the present application.Since device is implemented Example is substantially similar to embodiment of the method, so describing fairly simple, the correspondence that relevant part refers to embodiment of the method is said It is bright.Device embodiment described below is only schematical.
The device of container processing shown in Fig. 3, including:
Container determination unit 301 to be updated needs newer at least one former container for determining;
Destination server determination unit 302, for according to preset former container and the server for disposing the former container Correspondence determines the server of at least one operation former container;
Updating unit 303 is used to indicate former container described in the server update of the operation former container.
Optionally, the updating unit 303, is specifically used for:
Indicate that the server of the operation former container stops the former container;Alternatively,
Indicate that the server of the operation former container deletes the former container;Alternatively,
Indicate the startup of server new container of the operation former container.
Optionally, the updating unit 303, including new container promoter unit, are used for:
Indicate that the server of the operation former container from the entity for being stored with image file, is obtained for updating former appearance The target image file of device;
Indicate that the server of the operation former container uses the target mirror image file start new container.
Optionally, the device of the container processing, further includes detection unit, is used for:
Test command is sent to the server of the operation former container;
The server for receiving the operation former container is directed to the implementing result of the test command;
According to the command execution results, judge whether the server of the operation former container is successfully updated the original Container;
If judging, the server of the operation former container updates the former container not successfully, stops updating the original Container.
Optionally, the detection unit further includes alarm part-unit, is used for:
If judging, the server of the operation former container updates the former container not successfully, sends out alert notice.
Detection unit, the container determination unit 301 to be updated, is specifically used for:
Receive the instruction of more new container;
According to described instruction, the newer former container of the needs is determined.
Optionally, the device of the container processing, further includes mirror image construction unit, is used for:
Obtain the program bag for obtaining updated container;
According to described program packet, the target image file for updating the former container is built.
Optionally, the device of the container processing, further includes mirror image distal end construction unit, is used for:
It indicates the entity of structure image file, obtains the program bag for obtaining updated container;
The entity for indicating the structure image file, the target according to described program packet structure for updating the former container Image file.
Optionally, the device of the container processing, further includes mirror image memory cell, is used for:
By the target mirror image file push to the entity of energy memory image file;Or,
The entity for indicating the structure image file, by the target mirror image file push to the reality of energy memory image file Body.
Optionally, the entity of the entity for being stored with image file and/or energy memory image file, is image file storehouse Library.
Optionally, the container is the operation ring of the specific application and specific application that are run based on docker engine starts Border.
The application 3rd embodiment additionally provides a kind of electronic equipment of the method handled for realizing the container.
The application 3rd embodiment describes fairly simple, and relevant part refers to the container processing of above-mentioned offer Method embodiment corresponding explanation.
The electronic equipment that the application 3rd embodiment provides, including:
Memory and processor;
For the memory for storing computer executable instructions, the processor is executable for executing the computer Instruction:
It determines and needs newer at least one former container;
According to the correspondence of preset former container and the server for disposing the former container, at least one operation institute is determined State the server of former container;
Indicate former container described in the server update of the operation former container.
Optionally, the processor is also particularly useful for the following computer executable instructions of execution:
Indicate that the server of the operation former container stops the former container;Alternatively,
Indicate that the server of the operation former container deletes the former container;Alternatively,
Indicate the startup of server new container of the operation former container.
Optionally, the startup of server new container of the instruction operation former container, including:
Indicate that the server of the operation former container from the entity for being stored with image file, is obtained for updating former appearance The target image file of device;
Indicate that the server of the operation former container uses the target mirror image file start new container.
Optionally, the processor is additionally operable to execute following computer executable instructions:
Test command is sent to the server of the operation former container;
The server for receiving the operation former container is directed to the implementing result of the test command;
According to the command execution results, judge whether the server of the operation former container is successfully updated the original Container;
If judging, the server of the operation former container updates the former container not successfully, stops updating the original Container.
Optionally, the processor is additionally operable to execute following computer executable instructions:
If judging, the server of the operation former container updates the former container not successfully, sends out alert notice.
Optionally, the processor is also particularly useful for the following computer executable instructions of execution:
Receive the instruction of more new container;
According to described instruction, the newer former container of the needs is determined.
Optionally, the processor is additionally operable to execute following computer executable instructions:
Obtain the program bag for obtaining updated container;
According to described program packet, the target image file for updating the former container is built.
Optionally, the processor is additionally operable to execute following computer executable instructions:
It indicates the entity of structure image file, obtains the program bag for obtaining updated container;
The entity for indicating the structure image file, the target according to described program packet structure for updating the former container Image file.
Optionally, the processor is additionally operable to execute following computer executable instructions:
By the target mirror image file push to the entity of energy memory image file;Or,
The entity for indicating the structure image file, by the target mirror image file push to the reality of energy memory image file Body.
Optionally, the entity of the entity for being stored with image file and/or energy memory image file, is image file storehouse Library.
Optionally, the container is the operation ring of the specific application and specific application that are run based on docker engine starts Border.
The application fourth embodiment provides a kind of storage device, describes fairly simple, and relevant part refers to The corresponding explanation of the embodiment of the method for the container processing of above-mentioned offer.
The application fourth embodiment provides a kind of storage device, is stored with instruction, described instruction can be loaded by processor And execute following steps:
It determines and needs newer at least one former container;
According to the correspondence of preset former container and the server for disposing the former container, at least one operation institute is determined State the server of former container;
Indicate former container described in the server update of the operation former container.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
1, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media Method or technology realize information storage.Information can be computer-readable instruction, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or Other magnetic storage apparatus or any other non-transmission medium can be used for storage and can be accessed by a computing device information.According to Herein defines, and computer-readable medium does not include non-temporary computer readable media (transitory media), is such as modulated Data-signal and carrier wave.
2, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program production Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It can be used in the computer that one or more wherein includes computer usable program code moreover, the application can be used The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, any this field skill Art personnel are not departing from spirit and scope, can make possible variation and modification, therefore the guarantor of the application Shield range should be subject to the range that the application claim defined.

Claims (10)

1. a kind of method of container processing, which is characterized in that including:
It determines and needs newer at least one former container;
According to the correspondence of preset former container and the server for disposing the former container, at least one operation original is determined The server of container;
Indicate former container described in the server update of the operation former container.
2. according to the method described in claim 1, it is characterized in that, described indicate the server for running the former container more The new former container, including:
Indicate that the server of the operation former container stops the former container;Alternatively,
Indicate that the server of the operation former container deletes the former container;Alternatively,
Indicate the startup of server new container of the operation former container.
3. according to the method described in claim 2, it is characterized in that, the server of the instruction operation former container opens Dynamic new container, including:
Indicate that the server of the operation former container from the entity for being stored with image file, is obtained for updating former container Target image file;
Indicate that the server of the operation former container uses the target mirror image file start new container.
4. according to the method described in claim 1, it is characterized in that, further including:
Test command is sent to the server of the operation former container;
The server for receiving the operation former container is directed to the implementing result of the test command;
According to the command execution results, judge whether the server of the operation former container is successfully updated the former appearance Device;
If judging, the server of the operation former container updates the former container not successfully, stops updating the former appearance Device.
5. according to the method described in claim 4, it is characterized in that, further including:
If judging, the server of the operation former container updates the former container not successfully, sends out alert notice.
6. according to the method described in claim 1, it is characterized in that, the newer at least one former container of the determining needs, packet It includes:
Receive the instruction of more new container;
According to described instruction, the newer former container of the needs is determined.
7. according to the method described in claim 1, it is characterized in that, further including:
Obtain the program bag for obtaining updated container;
According to described program packet, the target image file for updating the former container is built.
8. according to the method described in claim 1, it is characterized in that, further including:
It indicates the entity of structure image file, obtains the program bag for obtaining updated container;
The entity for indicating the structure image file, the target mirror image according to described program packet structure for updating the former container File.
9. according to claim 7 or 8 any one of them methods, which is characterized in that further include:
By the target mirror image file push to the entity of energy memory image file;Or,
The entity for indicating the structure image file, by the target mirror image file push to the entity of energy memory image file.
10. a kind of device of container processing, which is characterized in that including:
Container determination unit to be updated needs newer at least one former container for determining;
Destination server determination unit, for the corresponding pass according to preset former container and the server for disposing the former container System determines the server of at least one operation former container;
Updating unit is used to indicate former container described in the server update of the operation former container.
CN201810449642.8A 2018-05-11 2018-05-11 A kind of method and device of container processing Pending CN108628664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810449642.8A CN108628664A (en) 2018-05-11 2018-05-11 A kind of method and device of container processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810449642.8A CN108628664A (en) 2018-05-11 2018-05-11 A kind of method and device of container processing

Publications (1)

Publication Number Publication Date
CN108628664A true CN108628664A (en) 2018-10-09

Family

ID=63692737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810449642.8A Pending CN108628664A (en) 2018-05-11 2018-05-11 A kind of method and device of container processing

Country Status (1)

Country Link
CN (1) CN108628664A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459611A (en) * 2020-03-27 2020-07-28 新浪网技术(中国)有限公司 Mirror image pulling method and device for Kubernetes system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893133A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Application service seamless migration method and system based on container technology
CN106528224A (en) * 2016-11-03 2017-03-22 腾讯科技(深圳)有限公司 Content updating method and system for Docker container, and server
CN106843837A (en) * 2016-12-21 2017-06-13 中电科华云信息技术有限公司 The construction method of openstack assembly containers
CN106878385A (en) * 2016-12-30 2017-06-20 新华三技术有限公司 Private clound dispositions method and device
CN107016059A (en) * 2017-03-10 2017-08-04 北京聚睿智能科技有限公司 A kind of data-base cluster dispositions method, device and physical server
US20170279770A1 (en) * 2016-03-24 2017-09-28 Varmour Networks, Inc. Security Policy Generation Using Container Metadata
CN107659643A (en) * 2017-09-25 2018-02-02 浪潮软件集团有限公司 Cloud platform construction method and device
CN107766126A (en) * 2017-11-15 2018-03-06 腾讯科技(深圳)有限公司 Construction method, system, device and the storage medium of container mirror image
CN107786638A (en) * 2017-09-27 2018-03-09 华为技术有限公司 A kind of data processing method, apparatus and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170279770A1 (en) * 2016-03-24 2017-09-28 Varmour Networks, Inc. Security Policy Generation Using Container Metadata
CN105893133A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Application service seamless migration method and system based on container technology
CN106528224A (en) * 2016-11-03 2017-03-22 腾讯科技(深圳)有限公司 Content updating method and system for Docker container, and server
CN106843837A (en) * 2016-12-21 2017-06-13 中电科华云信息技术有限公司 The construction method of openstack assembly containers
CN106878385A (en) * 2016-12-30 2017-06-20 新华三技术有限公司 Private clound dispositions method and device
CN107016059A (en) * 2017-03-10 2017-08-04 北京聚睿智能科技有限公司 A kind of data-base cluster dispositions method, device and physical server
CN107659643A (en) * 2017-09-25 2018-02-02 浪潮软件集团有限公司 Cloud platform construction method and device
CN107786638A (en) * 2017-09-27 2018-03-09 华为技术有限公司 A kind of data processing method, apparatus and system
CN107766126A (en) * 2017-11-15 2018-03-06 腾讯科技(深圳)有限公司 Construction method, system, device and the storage medium of container mirror image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张宁溪等: "基于Docker、Swarm、Consul与Nginx构建高可用和可扩展Web服务框架的方法", 《电信技术》 *
徐珉: "Docker环境下容器编排工具的选择", 《集成电路应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459611A (en) * 2020-03-27 2020-07-28 新浪网技术(中国)有限公司 Mirror image pulling method and device for Kubernetes system

Similar Documents

Publication Publication Date Title
US10997293B2 (en) Container and image scanning for a platform-as-a-service system
US10387750B2 (en) Supporting manifest list for multi-platform application container images
US9880889B2 (en) Virtual application extension points
US8443361B2 (en) Systems and methods for tracking a history of changes associated with software packages in a computing system
US20200057619A1 (en) System and method for creating and deploying a release package
US9727352B2 (en) Utilizing history of changes associated with software packages to manage computing systems
EP1788493A1 (en) Detecting changes in data
CN107885551A (en) A kind of service arrangement method, apparatus, computer-readable recording medium and storage control
CN103856343A (en) Method and system for configurating virtual machine network information
US11973850B2 (en) System and method for automatic deployment of a cloud environment
JP5613295B2 (en) Storage medium for providing system, method and program for managing distribution of contents to apparatus
US11900089B2 (en) Automatically configuring and deploying a software operator in a distributed computing environment from a package
CN108628664A (en) A kind of method and device of container processing
CN111459530B (en) Patching method, device and storage medium
US20200133709A1 (en) System and method for content - application split
US10277615B2 (en) Maintenance of distributed computing systems
CN117015759A (en) Automatic updating of VM sets
CN116762057A (en) Automated platform for managing, deploying and orchestrating highly distributed service applications
CN112463304A (en) Rollback method and apparatus for container mirror image, computer device, and storage medium
CN113805858B (en) Method and device for continuously deploying software developed by scripting language
US20240037017A1 (en) Verification of core file debugging resources
US20240061667A1 (en) Incremental Image Import Process for Supporting Multiple Upstream Image Repositories
US11481502B2 (en) Technology for adaptive software discovery scan
US20240012636A1 (en) Git-based delta rpm
JP2006146307A (en) Correction module application system, correction module application terminal, and correction module application program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181009

WD01 Invention patent application deemed withdrawn after publication