CN115129429A - Container application management method and device, electronic equipment and storage medium - Google Patents

Container application management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115129429A
CN115129429A CN202211059904.2A CN202211059904A CN115129429A CN 115129429 A CN115129429 A CN 115129429A CN 202211059904 A CN202211059904 A CN 202211059904A CN 115129429 A CN115129429 A CN 115129429A
Authority
CN
China
Prior art keywords
container
mirror image
application
application management
warehouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211059904.2A
Other languages
Chinese (zh)
Other versions
CN115129429B (en
Inventor
韩辉
付同堂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Yihui Aizhi Iot Technology Co ltd
Original Assignee
Nanjing Yihui Aizhi Iot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Yihui Aizhi Iot Technology Co ltd filed Critical Nanjing Yihui Aizhi Iot Technology Co ltd
Priority to CN202211059904.2A priority Critical patent/CN115129429B/en
Publication of CN115129429A publication Critical patent/CN115129429A/en
Application granted granted Critical
Publication of CN115129429B publication Critical patent/CN115129429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a container application management method and device, electronic equipment and a storage medium. The method comprises the following steps: when a container application installed on a computer receives an application management instruction, determining a target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in a private mirror image warehouse of the computer; and performing application management on the container application based on the application management instruction and the target container mirror image. The technical scheme of the embodiment of the invention solves the technical problem that the container application cannot be managed in time because the mirror image data of the container application cannot be acquired in time in the prior art, and realizes the timely acquisition of the mirror image data of the container application, thereby achieving the technical effect of managing the container application in time.

Description

Container application management method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for managing a container application, an electronic device, and a storage medium.
Background
For the management of the container application, in the related art, the mirror data is usually pulled from a local mirror repository corresponding to the computer on which the container application is installed based on a local area network, see fig. 1, so as to manage the container application installed in the computer. However, once the local area network where the computer and the local mirror image warehouse are located is unstable or interrupted, the computer cannot acquire mirror image data in the local mirror image warehouse in time, and there is a problem that the container application cannot be managed in time, thereby affecting the management of the container application.
Disclosure of Invention
The invention provides a container application management method, a device, electronic equipment and a storage medium, which are used for realizing the timely acquisition of mirror image data of container applications, thereby achieving the technical effect of timely managing the container applications.
According to an aspect of the present invention, there is provided a container application management method, including:
when a container application installed on a computer receives an application management instruction, determining a target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in a private mirror image warehouse of the computer;
and performing application management on the container application based on the application management instruction and the target container mirror image.
Optionally, the method further comprises: and determining a remote mirror image warehouse corresponding to the computer, and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer.
Optionally, the method further comprises: establishing an unreliable communication connection between the remote mirror repository and the private mirror repository; the sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer comprises: and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer based on the unreliable communication connection.
Optionally, the method further comprises: acquiring an application management policy of the container application; the performing application management on the container application based on the application management instruction and the target container image comprises: and performing application management on the container application based on the application management instruction, the application management policy and the target container image.
Optionally, the performing, by the application management module, application management on the container application based on the application management instruction, the application management policy, and the target container image includes: based on the application management instruction, pulling the target container mirror image in the private mirror image warehouse; and updating or rolling back the container application through the target container mirror image based on the application management strategy.
Optionally, the method further comprises: when the computer receives an application installation instruction, determining a container mirror image to be installed corresponding to the application installation instruction in each warehouse container mirror image stored in the private mirror image warehouse; and pulling the mirror image of the container to be installed in the private mirror image warehouse, and installing the mirror image of the container to be installed in the computer.
Optionally, the pulling the container image to be installed in the private image warehouse, and installing the container image to be installed in the computer, includes: and pulling the container mirror image to be installed in the private mirror image warehouse based on Ethernet, and installing the container mirror image to be installed in the computer.
According to another aspect of the present invention, there is provided a container application management apparatus. The device comprises:
the system comprises a target container mirror image determining module, a storage management module and a storage management module, wherein the target container mirror image determining module is used for determining a target container mirror image corresponding to an application management instruction in each storage container mirror image stored in a private mirror image storage of a computer when a container application installed on the computer receives the application management instruction;
and the container application management module is used for carrying out application management on the container application based on the application management instruction and the target container mirror image.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the container application management method provided by the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the container application management method provided by the present invention when executed.
According to the technical scheme, when the container application installed on the computer receives the application management instruction, the target container mirror image corresponding to the application management instruction is determined in each warehouse container mirror image stored in a private mirror image warehouse of the computer. In the invention, the private image warehouse is arranged in the computer, so that the condition that the target container image corresponding to the container application installed in the computer cannot be acquired under the condition of network interruption can be avoided. And performing application management on the container application based on the application management instruction and the target container mirror image. The technical scheme of the invention solves the technical problem that the container application cannot be managed in time because the mirror image data of the container application cannot be acquired in time under the condition that the network is unstable or interrupted in the prior art, and realizes the acquisition of the mirror image data of the container application in time, thereby achieving the technical effect of managing the container application in time.
It should be understood that the statements herein do not identify key or critical features of the invention, nor do they limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an architecture diagram of a container application management in the prior art;
fig. 2 is a schematic flowchart of a container application management method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a container application management method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a framework applicable to a container application management method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a container application management apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that the data referred to in this disclosure, including but not limited to the data itself, the acquisition or use of the data, should comply with the requirements of the applicable laws and regulations and related regulations.
Example one
Fig. 2 is a flowchart of a container application management method according to an embodiment of the present invention, where this embodiment is applicable to a scenario where a container application is managed, and the method may be executed by a container application management apparatus, where the container application management apparatus may be implemented in a form of hardware and/or software, and the container application management apparatus may be configured in an electronic device such as a computer or a server.
As shown in fig. 2, the method of the present embodiment includes:
s110, when a container application installed on a computer receives an application management instruction, determining a target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in a private mirror image warehouse of the computer.
A computer is understood to be a computer for performing edge calculations. In embodiments of the present invention, the computer includes, but is not limited to, an edge computer. Illustratively, the computer may be a vehicle-mounted computer. Edge computing is a computing mode in which services and computing resources are placed in network edge devices near end users. A container application may be understood as a computer-installed container application. The number of container applications may be one, two or more. The application management instruction may be an instruction for managing the container application installed in the computer input. The application management instructions may carry information of a current version number and a target version number of the container application. The target version number may be understood as a version number of the container application after the container application is updated or rolled back. The application management instructions may include application update instructions or application rollback instructions. The application update instruction may be understood as an instruction to upgrade the container application from a low version to a high version. The application update instructions may be used to upgrade a container application to install a high-version container application in a computer. An application rollback instruction may be understood as an instruction to roll back a container application from a high version to a low version. The application rollback instruction may be used to perform a rollback process on the container application to install a low version of the container application in the computer.
Wherein a warehouse container mirror may be understood as a container mirror stored in a warehouse. A container image may be understood as a software package that can be run at any time and may include, but is not limited to, program code running a container application. The private image repository may be an image repository configured in advance in the computer, and may be used to store the repository container images corresponding to the container applications installed on the computer. And taking the warehouse container mirror image which is stored in the private mirror image warehouse and corresponds to the application management instruction as a target container mirror image. In the embodiment of the invention, the warehouse container mirror image stored in the private mirror image warehouse arranged in the computer is derived from the remote mirror image warehouse corresponding to the computer. A remote mirror repository may be understood as a repository in the cloud for storing mirror images of repository containers.
In the embodiment of the present invention, the manner for acquiring the mirror image of the warehouse container by the private mirror image warehouse includes: and determining a remote mirror image warehouse corresponding to the computer, and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer. Sending each of the repository container images stored in the remote image repository to a private image repository built in the computer may include: and based on a pre-configured mirror image synchronization strategy, synchronizing the mirror image of the warehouse container stored in the remote mirror image warehouse to the private mirror image warehouse. The mirror image synchronization policy may be a policy configured in advance according to actual requirements.
Optionally, before sending each of the repository container images stored in the remote image repository to a private image repository built in the computer, the method further includes: establishing an unreliable communication connection between the remote mirror repository and the private mirror repository. A non-reliable communication connection is understood to be a communication connection of a non-reliable transport protocol. The unreliable transport protocol may include at least one of frame relay, network protocol, and user datagram protocol.
In this embodiment of the present invention, after the establishment of the unreliable communication connection between the remote mirror repository and the private mirror repository is completed, the sending each of the repository container mirrors stored in the remote mirror repository to the private mirror repository built in the computer includes: and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer based on the unreliable communication connection.
And S120, performing application management on the container application based on the application management instruction and the target container mirror image.
Specifically, after the target container mirror image corresponding to the container application is determined, the target container mirror image may be pulled from the private mirror image warehouse based on the application management instruction and sent to the computer. And further performing application management on the container application in the computer through the target container mirror image based on the application management instruction.
As an optional implementation manner of the embodiment of the present invention, the application management instruction is an application update instruction. The application management of the container application based on the application management instruction and the target container mirror image comprises the following steps: and upgrading the container application through the target container mirror image based on the application updating instruction. Illustratively, taking the container application as the container application a as an example, the application update instruction includes a current version number (e.g., V1.1) and a target version number (V1.2) of the container application, and based on the application update instruction, the V1.1 version of the container application is upgraded to the V1.2 version of the container application.
As another optional implementation manner of the embodiment of the present invention, the application management instruction is an application rollback instruction. The application management of the container application based on the application management instruction and the target container mirror image comprises the following steps: and performing rollback processing on the container application through the target container mirror image based on the application rollback instruction. Following the above example, the application rollback instruction contains the current version number (V1.2) and the target version number (V1.1) of the container application, and based on the application rollback instruction, the V1.2 version of the container application is rolled back to the V1.1 version of the container application.
According to the technical scheme of the embodiment of the invention, when the container application installed on the computer receives the application management instruction, the target container mirror image corresponding to the application management instruction is determined in each warehouse container mirror image stored in a private mirror image warehouse of the computer. In the embodiment of the invention, the private mirror image warehouse arranged in the computer can avoid that the target container mirror image corresponding to the container application installed in the computer can not be obtained under the condition of network interruption. And performing application management on the container application based on the application management instruction and the target container mirror image. The technical scheme of the embodiment of the invention solves the technical problem that the container application cannot be managed in time because the mirror image data of the container application cannot be acquired in time under the condition that the network is unstable or interrupted in the prior art, and realizes the timely acquisition of the mirror image data of the container application, thereby achieving the technical effect of managing the container application in time.
Example two
Fig. 3 is a schematic flow chart of a container application management method according to a second embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, the container application management method according to the present invention further includes: acquiring an application management policy of the container application; the performing application management on the container application based on the application management instruction and the target container image comprises: and performing application management on the container application based on the application management instruction, the application management policy and the target container image. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 3, the method of this embodiment specifically includes:
s210, when a container application installed in a computer receives an application management instruction, determining a target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in a private mirror image warehouse of the computer.
S220, obtaining the application management strategy of the container application.
An application management policy may be understood as a policy for managing an application. It should be noted that the application management policy may be configured according to actual requirements. The application management policy may include information such as the version number and number of warehouse container images that need to be pulled, information whether to update or rollback the container application, information whether to install a new container application, parameters of an update or rollback container application, and parameters of an installation of a new container application. Wherein, the parameters of updating or rolling back the container application, and the parameters of installing the new container application may include, but are not limited to, time, version, network environment, and the like. In the embodiment of the present invention, the application management policy may be built in a computer running the container application, or may be stored in the cloud, which is not specifically limited herein.
In the embodiment of the present invention, there are various manners for acquiring an application management policy of a container application, and the acquisition manner is not specifically limited herein, for example, the acquisition manner may be to receive an application management policy for uploading and managing the container application; alternatively, it may be that, in response to the acquisition instruction for acquiring the application management policy, a storage location (e.g., on the cloud or in a computer running the container application) of the application management policy may be determined, and the application management policy may be acquired in the storage location.
S230, performing application management on the container application based on the application management instruction, the application management policy and the target container mirror image.
In this embodiment of the present invention, the performing application management on the container application based on the application management instruction, the application management policy, and the target container image includes: based on the application management instruction, pulling the target container mirror image in the private mirror image warehouse; and updating or rolling back the container application through the target container mirror image based on the application management strategy.
Specifically, the current version number and the target version number of the application may be based on the application management instruction container; the management conditions (e.g., time and network environment) of the container application may be determined according to the application management policy. The container application of the current version number may be upgraded or rolled back to the container application of the target version number based on the application management instruction when the management condition of the container application is reached.
In an embodiment of the present invention, the method further comprises: when the computer receives an application installation instruction, determining a container mirror image to be installed corresponding to the application installation instruction in each warehouse container mirror image stored in the private mirror image warehouse; and pulling the mirror image of the container to be installed in the private mirror image warehouse, and installing the mirror image of the container to be installed in the computer. A container image to be installed may be understood as a container image that needs to be installed on a computer.
Optionally, the pulling the container image to be installed in the private image warehouse, and installing the container image to be installed in the computer, includes: and pulling the container mirror image to be installed in the private mirror image warehouse based on Ethernet, and installing the container mirror image to be installed in the computer.
According to the technical scheme of the embodiment of the invention, the application management strategy of the container application is obtained. And further, the application management of the container application can be performed based on the application management instruction, the application management policy and the target container mirror image, so that the container application installed in the computer can be managed automatically based on the application management policy.
EXAMPLE III
As an alternative example of the embodiment of the present invention, a framework diagram applicable to a container application management method is provided in the embodiment of the present invention. Based on this framework, specific embodiments of the container application management method can be seen in the following examples. The technical terms that are the same as or corresponding to the above-mentioned embodiments are not described in detail herein.
As shown in fig. 4, when a container application installed in a computer receives an application management instruction, a target container image corresponding to the application management instruction may be pulled from among warehouse container images stored in a private image warehouse built in the computer through an ethernet based on the application management program. The application manager may be used to pull the target container image from the private image repository.
After the target container mirror is pulled, a preconfigured container application version policy program can be obtained. And further, the container application installed on the computer can be managed through the target container mirror image based on the container application version policy program and the application management instruction. Wherein, the container application version policy program can be understood as an application management policy.
On the basis of the above embodiment, the method further comprises the following steps: and when detecting that network connection exists between the remote mirror image warehouse and a private mirror image warehouse which is internally arranged in the computer, synchronizing the warehouse container mirror image stored in the remote mirror image warehouse to the private mirror image warehouse. Alternatively, the network between the remote image repository and the private image repository may be a 4G network, a wireless network, or a communication network based on an unreliable protocol.
According to the technical scheme of the embodiment of the invention, when the application management instruction is received by the container application installed on the computer, the application management program can be used for pulling the target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in the private mirror image warehouse built in the computer through the Ethernet. After the target container image is pulled, a preconfigured container application version policy program may be obtained. And further, the container application installed on the computer can be managed through the target container mirror image based on the container application version policy program and the application management instruction. According to the technical scheme of the embodiment of the invention, the decoupling of the edge computing environment and the internet mirror image warehouse is realized, so that the version of the application program can be maintained and managed under the condition that the edge computing environment is separated from the cloud and the internet.
Example four
Fig. 5 is a schematic structural diagram of a container application management apparatus according to a fourth embodiment of the present invention. As shown in fig. 5, the apparatus includes: a target container image determination module 410 and a container application management module 420.
The target container mirror image determining module 410 is configured to, when a container application installed in a computer receives an application management instruction, determine a target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in a private mirror image warehouse of the computer; a container application management module 420, configured to perform application management on the container application based on the application management instruction and the target container image.
According to the technical scheme of the embodiment of the invention, when the container application installed on the computer receives the application management instruction, the target container mirror image corresponding to the application management instruction is determined in each warehouse container mirror image stored in a private mirror image warehouse of the computer. In the embodiment of the invention, the private image warehouse arranged in the computer can avoid that the target container image corresponding to the container application installed in the computer can not be acquired under the condition of network interruption. And performing application management on the container application based on the application management instruction and the target container mirror image. The technical scheme of the embodiment of the invention solves the technical problem that the container application cannot be managed in time because the mirror image data of the container application cannot be acquired in time under the condition of unstable or interrupted network in the prior art, and realizes the timely acquisition of the mirror image data of the container application, thereby achieving the technical effect of managing the container application in time.
Optionally, the apparatus further comprises: and the warehouse container mirror image sending module is used for determining a remote mirror image warehouse corresponding to the computer and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer.
Optionally, the apparatus further comprises: the warehouse communication connection module is used for establishing unreliable communication connection between the remote mirror image warehouse and the private mirror image warehouse; and the warehouse container mirror image sending module is used for sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer based on the unreliable communication connection.
Optionally, the apparatus further comprises: an application management policy obtaining module, configured to obtain an application management policy of the container application; a container application management module 420, configured to perform application management on the container application based on the application management instruction, the application management policy, and the target container image.
Optionally, the container application management module 420 is configured to pull the target container image in the private image repository based on the application management instruction; and updating or rolling back the container application through the target container mirror image based on the application management strategy.
Optionally, the apparatus further comprises: the application installation module is used for determining a container mirror image to be installed corresponding to the application installation instruction in each warehouse container mirror image stored in the private mirror image warehouse when the computer receives the application installation instruction; and pulling the mirror image of the container to be installed in the private mirror image warehouse, and installing the mirror image of the container to be installed in the computer.
Optionally, the application installation module is configured to pull the container image to be installed in the private image warehouse based on ethernet, and install the container image to be installed in the computer.
The container application management device provided by the embodiment of the invention can execute the container application management method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the container application management apparatus are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE five
FIG. 6 illustrates a schematic structural diagram of an electronic device 10 that may be used to implement an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the Random Access Memory (RAM) 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, Read Only Memory (ROM) 12 and Random Access Memory (RAM) 13 are connected to each other by a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to an input/output (I/O) interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the container application management method.
In some embodiments, the container application management method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via a Read Only Memory (ROM) 12 and/or the communication unit 19. When the computer program is loaded into Random Access Memory (RAM) 13 and executed by processor 11, one or more steps of the container application management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the container application management method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for managing a container application, comprising:
when a container application installed on a computer receives an application management instruction, determining a target container mirror image corresponding to the application management instruction in each warehouse container mirror image stored in a private mirror image warehouse of the computer;
and performing application management on the container application based on the application management instruction and the target container mirror image.
2. The method of claim 1, further comprising:
and determining a remote mirror image warehouse corresponding to the computer, and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer.
3. The method of claim 2, further comprising:
establishing an unreliable communication connection between the remote mirror repository and the private mirror repository;
the sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer comprises:
and sending each warehouse container mirror image stored in the remote mirror image warehouse to a private mirror image warehouse built in the computer based on the unreliable communication connection.
4. The method of claim 1, further comprising:
acquiring an application management policy of the container application;
the performing application management on the container application based on the application management instruction and the target container image comprises:
and performing application management on the container application based on the application management instruction, the application management policy and the target container image.
5. The method of claim 4, wherein the application managing the container application based on the application management instruction, the application management policy, and the target container image comprises:
based on the application management instruction, pulling the target container mirror image in the private mirror image warehouse; and updating or rolling back the container application through the target container mirror image based on the application management strategy.
6. The method of claim 1, further comprising:
when the computer receives an application installation instruction, determining a container mirror image to be installed corresponding to the application installation instruction in each warehouse container mirror image stored in the private mirror image warehouse;
and pulling the mirror image of the container to be installed in the private mirror image warehouse, and installing the mirror image of the container to be installed in the computer.
7. The method according to claim 6, wherein the pulling the container image to be installed in the private image warehouse and installing the container image to be installed in the computer comprises:
pulling the container mirror image to be installed in the private mirror image warehouse based on Ethernet, and installing the container mirror image to be installed in the computer.
8. A container application management apparatus, comprising:
the system comprises a target container mirror image determining module, a storage management module and a storage management module, wherein the target container mirror image determining module is used for determining a target container mirror image corresponding to an application management instruction in each storage container mirror image stored in a private mirror image storage of a computer when a container application installed on the computer receives the application management instruction;
and the container application management module is used for carrying out application management on the container application based on the application management instruction and the target container mirror image.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the container application management method of any of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method of container application management of any one of claims 1-7 when executed.
CN202211059904.2A 2022-09-01 2022-09-01 Container application management method and device, electronic equipment and storage medium Active CN115129429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211059904.2A CN115129429B (en) 2022-09-01 2022-09-01 Container application management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211059904.2A CN115129429B (en) 2022-09-01 2022-09-01 Container application management method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115129429A true CN115129429A (en) 2022-09-30
CN115129429B CN115129429B (en) 2023-06-13

Family

ID=83387764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211059904.2A Active CN115129429B (en) 2022-09-01 2022-09-01 Container application management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115129429B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117369953A (en) * 2023-12-08 2024-01-09 中电云计算技术有限公司 Mirror synchronization method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
US10154065B1 (en) * 2016-09-22 2018-12-11 Trend Micro Incorporated Policy management in software container computing environments
CN109683909A (en) * 2018-11-30 2019-04-26 昆明理工大学 A kind of MPI parallel environment automatic deployment method based on Docker
CN109981351A (en) * 2019-03-06 2019-07-05 浪潮通用软件有限公司 A kind of private clound dispositions method
US20210097476A1 (en) * 2018-06-29 2021-04-01 Huawei Technologies Co., Ltd. Container Management Method, Apparatus, and Device
CN112667998A (en) * 2020-12-08 2021-04-16 中国科学院信息工程研究所 Safe access method and system for container mirror image warehouse
CN112835676A (en) * 2021-01-27 2021-05-25 北京远盟普惠健康科技有限公司 Deployment method and device of containerized application, computer equipment and medium
CN113572619A (en) * 2021-09-22 2021-10-29 银河麒麟软件(长沙)有限公司 Container cloud mirror image credible implementation method and system based on nottry
US20220164214A1 (en) * 2019-04-12 2022-05-26 Institute Of Information Engineering, Chinese Academy Of Sciences Container platform-oriented trusted software authorization and verification system and method
US20220201073A1 (en) * 2020-12-22 2022-06-23 Salesforce.Com, Inc. Sharing objects across namespaces in a container-orchestration system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10154065B1 (en) * 2016-09-22 2018-12-11 Trend Micro Incorporated Policy management in software container computing environments
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
US20210097476A1 (en) * 2018-06-29 2021-04-01 Huawei Technologies Co., Ltd. Container Management Method, Apparatus, and Device
CN109683909A (en) * 2018-11-30 2019-04-26 昆明理工大学 A kind of MPI parallel environment automatic deployment method based on Docker
CN109981351A (en) * 2019-03-06 2019-07-05 浪潮通用软件有限公司 A kind of private clound dispositions method
US20220164214A1 (en) * 2019-04-12 2022-05-26 Institute Of Information Engineering, Chinese Academy Of Sciences Container platform-oriented trusted software authorization and verification system and method
CN112667998A (en) * 2020-12-08 2021-04-16 中国科学院信息工程研究所 Safe access method and system for container mirror image warehouse
US20220201073A1 (en) * 2020-12-22 2022-06-23 Salesforce.Com, Inc. Sharing objects across namespaces in a container-orchestration system
CN112835676A (en) * 2021-01-27 2021-05-25 北京远盟普惠健康科技有限公司 Deployment method and device of containerized application, computer equipment and medium
CN113572619A (en) * 2021-09-22 2021-10-29 银河麒麟软件(长沙)有限公司 Container cloud mirror image credible implementation method and system based on nottry

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHAHIDULLAH KAISER等: "Container Technologies for ARM Architecture: A Comprehensive Survey of the State-of-the-Art", 《IEEE ACCESS》 *
龙潇等: "BIM应用与软件研发一体化云平台设计与部署", 《中华建设》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117369953A (en) * 2023-12-08 2024-01-09 中电云计算技术有限公司 Mirror synchronization method, device, equipment and storage medium
CN117369953B (en) * 2023-12-08 2024-03-15 中电云计算技术有限公司 Mirror synchronization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115129429B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN107656748B (en) Application publishing method and device
CN109783151B (en) Method and device for rule change
CN110381042B (en) Graceful restart service method, device, medium and electronic equipment
CN115129429B (en) Container application management method and device, electronic equipment and storage medium
CN112347111A (en) Data updating method and device
CN107347093B (en) Configuration method and device for distributed server system
CN112671892B (en) Data transmission method, device, electronic equipment and medium
CN113542451A (en) Information processing method, device, equipment and storage medium
CN115982148A (en) Database table processing method and device, electronic equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN113360689B (en) Image retrieval system, method, related device and computer program product
CN114925305A (en) Page loading method and device
CN113805919A (en) Rendering special effect updating method and device, electronic equipment and storage medium
CN115098520A (en) Device data updating method and device, electronic device and storage medium
CN115344398A (en) Host job management method, device, electronic apparatus, medium, and program product
CN116455968A (en) Message middleware management method and related equipment
CN113450220A (en) Processing method and device based on decentralized batch processing
CN115129428A (en) Version management method and device for container mirror image
CN115437709A (en) Method and device for loading application home page splash screen resources
CN116069497A (en) Method, apparatus, device and storage medium for executing distributed task
CN115913954A (en) Cluster management information interaction method, device, equipment and storage medium
CN115373752A (en) Service processing method, device and storage medium
CN115934246A (en) Virtual machine creating method, device, equipment and medium
CN114546478A (en) Method, device, equipment and medium for updating code and database version

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
GR01 Patent grant
GR01 Patent grant