Customized contained engine, method, host and medium

By adopting a single-process model and functional module separation design in the container engine, it solves the problems of high resource consumption and poor communication reliability of traditional container engines, achieves flexible configuration and efficient communication, and is suitable for a variety of operating system environments.

WO2024174753A1PCT designated stage expired Publication Date: 2024-08-29ZTE CORP

Patent Information

Application Number
PCT/CN2024/071179
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-22
Filing Date
2024-01-08
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Traditional container engines run unnecessary components at startup or when business containers are created, resulting in excessive resource consumption. The multi-process model has poor communication reliability under high load conditions, making it unsuitable for resource-constrained embedded systems.

Method used

Design a customized container engine that uses a single-process model to separate core functional modules and optional functional modules. Optional sub-modules are selected according to business scenario configurations, and inter-process communication is implemented through function calls to reduce resource consumption and the number of processes.

Benefits of technology

It achieves flexible configuration of container engine functions, reduces engine complexity and resource consumption, improves communication efficiency and reliability between users and containers, and is suitable for various operating system environments, including embedded systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071179_29082024_PF_FP_ABST
    Figure CN2024071179_29082024_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of containers. Disclosed are a customized container engine, a container engine configuration method, a container starting method, a host and a computer-readable storage medium. The customized container engine is only composed of one running daemon process, that is, a single-process container engine can complete functions that can be accomplished only by means of the cooperation of processes of a traditional container engine.
Need to check novelty before this filing date? Find Prior Art

Description

Customized container engines, methods, hosts, and media

[0001] Related applications

[0002] This application claims priority to Chinese patent application No. 202310151941.4 filed on February 22, 2023, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of container technology, and in particular to a customized container engine, a container engine configuration method, a container startup method, a host machine, and a computer-readable storage medium. Background Art

[0004] With the popularity of microservice architecture in software design, more and more containers are used as infrastructure to carry applications, and microservices have become deeply dependent on containerization technology.

[0005] Traditional container engines, specifically those built within the Docker architecture (a lightweight "virtual machine," an open platform for developing, delivering, and running applications), include features related to the container and image lifecycles, as well as other rarely used or even unused features, such as Swarm Kit (Docker cluster management and container orchestration tool), Build Kit (image building tool), and even Network and Volume management modules. For example, in some wireless base station embedded single-board environments, the Network component doesn't use the default network provided by the Docker engine. Instead, the service itself customizes and plans the network based on its needs. After the service container is started, it directly enters the container's network namespace for network management. However, when the traditional Docker engine is started or when a service container is created, unnecessary components such as the network component continue to run, consuming additional resources.

[0006] Summary of the Invention

[0007] The main purpose of this application is to provide a customized container engine, a container engine configuration method, a container startup method, a host machine, and a computer-readable storage medium, aiming to solve the technical problems of complex container engines and high resource consumption in conventional technologies.

[0008] This application provides a customized container engine, which includes:

[0009] Core function module, which includes an interface server submodule, a container lifecycle submodule, and an image lifecycle submodule;

[0010] An optional functional module includes configurable and selectable optional sub-modules.

[0011] This application also provides a container engine configuration method, which is applied to the customized container engine described above, and includes:

[0012] The optional sub-module in the optional functional module is selected according to the business scenario configuration to obtain the customized container engine.

[0013] The present application also provides a container startup method, which is applied to the customized container engine described above, and includes:

[0014] Receive a startup request for starting a container through the interface server submodule, and create a container function based on the startup request;

[0015] The service container corresponding to the start request is started by calling the container function.

[0016] The present application also provides a host machine, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the container engine configuration method and the container startup method are implemented as described above.

[0017] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements the steps of the container engine configuration method and the container startup method as described above.

[0018] The present application also provides a container engine configuration device, which is applied to the customized container engine described above, and includes:

[0019] The customization module is used to select the optional sub-module in the optional function module according to the business scenario configuration to obtain the customized container engine.

[0020] The present application also provides a container startup device, which is applied to the customized container engine described above, and includes:

[0021] A creation module, configured to receive a start request for starting a container through the interface server submodule, and create a container function based on the start request;

[0022] The calling module is used to start the business container corresponding to the start request by calling the container function. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a schematic diagram of the structure of the operating equipment of the hardware operating environment involved in the embodiment of the present application;

[0024] Figure 2 is a schematic diagram of the container system architecture;

[0025] Figure 3 is a schematic diagram of a traditional multi-process container engine;

[0026] FIG4 is a schematic diagram of a single-process container engine according to an embodiment of a method for communicating between a container engine user and a container according to an embodiment of the present application;

[0027] FIG5 is a schematic diagram of container engine function configuration according to an embodiment of a method for communication between a container engine user and a container according to an embodiment of the present application;

[0028] FIG6 is a schematic diagram illustrating the configuration of container engine functions according to another embodiment of the method for communicating between a container engine user and a container according to an embodiment of the present application;

[0029] FIG7 is a schematic diagram comparing the container startup processes under a multi-process engine and a single-process engine in an embodiment of a method for communicating between a container engine user and a container according to an embodiment of the present application;

[0030] FIG8 is a schematic diagram of a configuration device for a container engine according to an embodiment of the present application;

[0031] FIG9 is a schematic diagram of a container starting device according to an embodiment of the present application.

[0032] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0033] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0034] Refer to Figure 1, which is a schematic diagram of the operating equipment structure of the hardware operating environment involved in the embodiment of the present application.

[0035] As shown in Figure 1, the operating device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (WI-FI) interface). The memory 1005 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0036] Those skilled in the art will understand that the structure shown in FIG1 does not constitute a limitation on the operating device, and may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.

[0037] As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a computer program.

[0038] In the operating device shown in FIG1 , the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the operating device of the present application can be set in the operating device, and the operating device calls the computer program stored in the memory 1005 through the processor 1001 and performs the following operations:

[0039] The optional sub-module in the optional functional module is selected according to the business scenario configuration to obtain the customized container engine.

[0040] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:

[0041] The step of selecting the optional sub-module in the optional functional module according to the business scenario configuration to obtain the customized container engine includes:

[0042] Before compiling the container engine, the customized container engine is generated based on the core functional modules and the configured and selected optional sub-modules.

[0043] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:

[0044] The step of selecting the optional submodule in the optional functional module according to the business scenario configuration to obtain the customized container engine further includes:

[0045] After starting the customized container engine, the configured and selected optional sub-modules are dynamically loaded into the customized container engine, or the configured and selected optional sub-modules in the customized container engine are unloaded to generate a new customized container engine.

[0046] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:

[0047] Receive a start request for starting a container through the interface server submodule, and create a container function based on the start request;

[0048] The service container corresponding to the start request is started by calling the container function.

[0049] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:

[0050] The step of starting the business container corresponding to the start request by calling the container function includes:

[0051] If the local image does not exist, drag the container image from the image repository as the local image;

[0052] After the local image is ready, a running command of the local image is generated by calling the container function, and a business container corresponding to the start request is started based on the running command.

[0053] In the field of container technology, engine: a tool for creating and managing containers, which generates containers by reading images and is responsible for pulling images from the warehouse or submitting images to the warehouse; image: similar to a virtual machine image, generally composed of a basic operating system environment and multiple applications packaged together, and is a template for creating containers; container: can be regarded as a simplified version of the Linux system environment (including root user permissions, process space, user space and network space, etc.) and a box packaged with the applications running in it; warehouse: a place where image files are centrally stored, divided into public warehouses and private warehouses. The largest public warehouse currently is the officially provided Docker Hub. In addition, domestic Alibaba Cloud, Tencent Cloud, etc. also provide public warehouses; host: the server where the operating system running the engine is located.

[0054] Refer to Figure 2. Docker images: images are unified packaging methods, which are templates; Docker containers: containers are unified runtime environments, which are based on images and have running / runtime states; and Docker registries: image repositories, which are used to store image templates. 1. The client issues various commands to the host (DOCKER_HOST); 2. The host calls the image, and if it exists, it uses it directly, running it as a container; 3. If the image is not available, it pulls the image from the public registry, pulls it locally, and then runs it as a container.

[0055] The container engine is the foundation for managing and running containers. Referring to Figure 3, the architecture of a traditional container engine, or Docker engine, is as follows: The main components of the Docker engine are the Docker client, the Docker daemon, the containerd process, and the runc process. Together, they are responsible for creating and running containers. Process communication between the Docker client and Dockerd processes, between the Dockerd process and the containerd process, and between the containerd process and the shim process all occurs via GRPC (gRPC Remote Procedure Calls), an open-source remote procedure call system developed by Google.

[0056] First, if GRPC is under high pressure or the system load is high, the reliability of GRPC communication will inevitably be affected, which will also affect the robustness of the Docker engine. In addition, the process contains both the GRPC client and the server (server), and the server is a simplified HTTP server (web server), which makes GRPC communication between processes consume a lot of resources. At the same time, when processes communicate directly, a long GRPC link is created, which also consumes a lot of resources. It can also be seen that this multi-process model requires more computing and memory resources, which is not suitable for some resource-constrained embedded systems such as the Internet of Things, wearable devices, and smart meters.

[0057] Second, in addition to functions related to the container and image lifecycles, traditional Docker engines also include other rarely used or even unused features, such as Swarm Kit (Docker cluster management and container orchestration tool), Build Kit (image building tool), and even Network (network management module) and Volume (volume management module). For example, in some wireless base station embedded single-board environments, the Network function does not use the default network provided by the Docker engine. Instead, the network is customized and planned by the business itself based on network requirements. After the business container is started, it directly enters the container network namespace for network management. However, when the traditional Docker engine is started or when the business container is created, unnecessary components such as the network are still running, consuming additional resources.

[0058] In summary, in this application, by redesigning the container engine, the resource consumption of the container engine is reduced, the communication efficiency between the user and the container is improved, and the communication between the container engine user and the container becomes reliable.

[0059] Correspondingly, compared to traditional container engines, the new container engine provided by this application can flexibly tailor functional modules to suit different business scenarios, thereby minimizing the complexity of the container engine itself and reducing its resource consumption. The container engine offers flexible functional options and can be configured to suit different scenarios, reducing the size of the container engine itself and conserving system resources.

[0060] Secondly, traditional containers can only complete the management of container lifecycle and image lifecycle by the cooperation of dockerd process, containerd process and shim process. The new container engine provided by this application consists of only one running daemon process, that is, a single-process container engine can complete the functions that can only be completed by the cooperation of each process of the traditional container engine. Compared with the multi-process container engine, the new container engine consumes fewer resources and is more reliable. Compared with the traditional open source container engine, this new container engine requires fewer processes and less hardware resources (such as memory and CPU resources), which is more cost-effective.

[0061] An embodiment of the present application provides a customized container engine. In one embodiment of the customized container engine of the present application, the customized container engine includes:

[0062] Core function module, which includes an interface server submodule, a container lifecycle submodule, and an image lifecycle submodule;

[0063] An optional functional module includes configurable and selectable optional sub-modules.

[0064] Referring to Figure 4 , in this embodiment, a new, lightweight, customized container engine is designed. This customized container engine features a smaller core functional module, encompassing only the container lifecycle and image lifecycle. The container engine uses an API server to provide external services, creating containers and images that comply with the Open Container Initiative (OCI) standard.

[0065] This new container engine can be customized by configurably cutting out non-core functional modules. This allows you to configure the optional functional modules of the container engine based on business scenarios, creating a customized container engine. This allows you to maintain containers based on the customized engine. This not only makes the container engine's functional configuration more flexible, but also makes it more lightweight.

[0066] The application scenarios of this new container engine include all operating system environments (including but not limited to MACOS, LINUX / UNIX, Windows, VXWorks, UCOS and other operating systems), as well as server operating systems and embedded operating systems.

[0067] In another embodiment of the customized container engine of the present application, the customized container engine is composed of a target daemon process, in which the dockerd process, the containerd process and the shim process are integrated, and function calls are used in the target daemon process to implement the functions of each process integrated in the target daemon process.

[0068] Referring to Figure 4 , the customized container engine proposed in this application is designed as a single-process model, consisting of a target daemon process. Compared to the traditional Docker engine, the dockerd process, containerd process, and shim process are all integrated into a single process. Furthermore, the functions of each integrated process are implemented by the target daemon process using function calls.

[0069] Exemplarily, the processes integrated into the target daemon process include a dockerd process, a containerd process, and a shim process;

[0070] Alternatively, include the dockerd process and the containerd process;

[0071] Alternatively, include the containerd process and the shim process.

[0072] In one embodiment, the processes integrated into the target daemon process can be a dockerd process, a containerd process, and a shim process, forming a three-in-one process. However, this is not limited to three-in-one processes. Alternatively, a dockerd process and a containerd process can be formed into a two-in-one process, or a containerd process and a shim process can be formed into a two-in-one process. This allows for flexible and efficient process integration to obtain the target daemon process.

[0073] thereby:

[0074] 1) Adjust inter-process communication from GRPC to using function calls for communication between traditional container dockerd processes, containerd processes, and shim processes. When using GRPC for inter-process communication, under high system load, inter-process message exchange is likely to be affected, leading to container anomalies. By integrating multiple processes into one, and directly using function calls for communication between processes, the reliability of inter-process communication can be improved, thereby eliminating the GRPC server, that is, the HTTP server (web server), to save resources and resolve the issue of GRPC communication disconnection under high load. 2) Merging multiple processes into one process not only reduces the number of processes but also reduces resource overhead. Thus, by reducing resource consumption, communication between container engine users and containers becomes reliable.

[0075] In one application scenario, to achieve high reliability of communication between container engine components and reduce the number of container engine processes, the container creation, start, stop, and deletion functions that previously required the cooperation of the dockerd process, containerd process, and shim process are implemented through function calls within a single process, thereby unifying the three types of processes: dockerd process, containerd process, and shim process.

[0076] An embodiment of the present application provides a method for configuring a container engine, which is applied to the customized container engine described above, and includes:

[0077] The optional sub-module in the optional functional module is selected according to the business scenario configuration to obtain the customized container engine.

[0078] To implement configurable container engine functionality, the core container modules are mandatory, primarily consisting of the API server, container lifecycle, and image lifecycle. Other optional modules include swarmkit, buildkit, network, and volume. Customize your container engine by selecting submodules within these modules based on your business scenarios.

[0079] Exemplarily, the step of selecting the optional submodule in the optional functional module according to the business scenario configuration to obtain the customized container engine includes:

[0080] Before compiling the container engine, the customized container engine is generated based on the core functional modules and the configured and selected optional sub-modules.

[0081] Referring to Figure 5 , before compilation, you can use a graphical configuration menu or configuration file to select the required functional modules, trim unnecessary and redundant functions, and flexibly configure the container engine's functions. After compilation, the complexity and resource overhead of the container engine executable program itself can be effectively reduced. In one embodiment, the specific implementation steps for obtaining a customized container engine are as follows:

[0082] (1) Analyze business scenario requirements and provide analysis for customized container engines.

[0083] (2) Freely select the required engine functions and tailor functional modules through the configuration menu (graphical configuration menu or configuration file).

[0084] (3) Compile the tailored container engine to generate its executable program.

[0085] (4) Run the container engine.

[0086] Exemplarily, the step of selecting the optional submodule in the optional functional module according to the business scenario configuration to obtain the customized container engine includes:

[0087] Before compiling the container engine, the customized container engine is generated based on the core functional modules and the configured and selected optional sub-modules.

[0088] Referring to Figure 6 , the functions of the container engine can also be minimized first, that is, only the necessary container lifecycle and image lifecycle functions are maintained. When the container engine program is running, other optional modules can be dynamically loaded into the container engine process as plug-ins, or the corresponding functions can be uninstalled from the container engine. This can also achieve the purpose of flexibly tailoring the container engine. In one embodiment, the specific implementation steps for obtaining a customized container engine are as follows:

[0089] (1) Compile the container engine core module and generate a minimum executable program.

[0090] (2) Start the minimum executable container engine program.

[0091] (3) Dynamically select and compile other optional functional modules of the container engine based on business needs.

[0092] (4) Load the compiled optional modules into the running process.

[0093] (5) The optional container engine function can be put into use online.

[0094] (6) When optional functions are not needed, they can be dynamically uninstalled from the container engine main process according to demand, reducing engine resource consumption.

[0095] An embodiment of the present application provides a container startup method, which is applied to the customized container engine described above, and includes:

[0096] Receive a start request for starting a container through the interface server submodule, and create a container function based on the start request;

[0097] The service container corresponding to the start request is started by calling the container function.

[0098] After the interface server submodule receives a container startup request from a user, it creates a container function based on the startup request and then calls the container function to start the corresponding service container. This allows processes to communicate directly through function calls, and within the target daemon process, function calls are used to implement the functions of the various processes integrated within the target daemon.

[0099] Exemplarily, the step of starting the business container corresponding to the start request by calling the container function includes:

[0100] If the local image does not exist, drag the container image from the image repository as the local image;

[0101] After the local image is ready, a running command of the local image is generated by calling the container function, and a business container corresponding to the start request is started based on the running command.

[0102] The client issues various commands to the host. The host then calls a local image. If a local image exists, it uses it directly and runs it as a container. If no local image exists, it pulls the image from the registry, drags it locally, and runs it as a container. Once the local image is ready, the container function is called to generate a run command for the local image. Based on this run command, the corresponding business container is started.

[0103] In one application scenario, referring to FIG7 , the process of starting a container under a single-process container engine is as follows:

[0104] 1. The user initiates a request to start a container;

[0105] 2. After receiving the container creation request, the engine's own API server processes the request, parses the parameters, and sends it to the backend to start a new coroutine definition to create the container function;

[0106] 3. Create a container function, create a container object according to the requested parameters, and save the object information to the database. Then call the start container function;

[0107] 4. The start container function actually starts the container. When starting the container, it first determines whether the local image exists. If not, it drags the container image from the remote image repository.

[0108] 5. When the image resources are ready, directly call the runtime command to start the main process of the business container, so that the business container can actually run.

[0109] In addition, referring to FIG8 , an embodiment of the present application further provides a configuration device for a container engine, which is applied to the customized container engine described above, and includes:

[0110] The customization module M1 is configured to select the optional sub-module in the optional function module according to the business scenario configuration to obtain the customized container engine.

[0111] Exemplarily, the configuration device of the container engine is further used to:

[0112] Before compiling the container engine, the customized container engine is generated based on the core functional modules and the configured and selected optional sub-modules.

[0113] Exemplarily, the configuration device of the container engine is further used to:

[0114] After starting the customized container engine, the configured and selected optional sub-modules are dynamically loaded into the customized container engine, or the configured and selected optional sub-modules in the customized container engine are unloaded to generate a new customized container engine.

[0115] 9 , the present application further provides a container startup device, which is applied to the customized container engine described above, and includes:

[0116] A creation module N1 is configured to receive a start request for starting a container through the interface server submodule, and create a container function based on the start request;

[0117] The calling module N2 is configured to start the service container corresponding to the start request by calling the container function.

[0118] Exemplarily, the calling module is further used to:

[0119] If the local image does not exist, drag the container image from the image repository as the local image;

[0120] After the local image is ready, a running command of the local image is generated by calling the container function, and a business container corresponding to the start request is started based on the running command.

[0121] The container engine configuration device and container startup device provided in this application respectively utilize the container engine configuration method and container startup method in the above-mentioned embodiments to address the technical issues of complex container engines and high resource consumption in conventional technologies. Compared with conventional technologies, the beneficial effects of the container engine configuration device and container startup device provided in the embodiments of this application are the same as those of the container engine configuration method and container startup method provided in the above-mentioned embodiments. Other technical features of the container engine configuration device and container startup device are the same as those disclosed in the above-mentioned embodiments and are not further elaborated here.

[0122] In addition, an embodiment of the present application also provides a host machine, which includes: a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the steps of the container engine configuration method and the container startup method as described above are implemented.

[0123] In addition, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the container engine configuration method and the container startup method as described above are implemented.

[0124] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to conventional technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0126] The above are only some embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A customized container engine, in, The customized container engine includes: A core function module, wherein the core function module includes an interface server submodule, a container lifecycle submodule, and an image lifecycle submodule; An optional functional module, wherein the optional functional module includes configurable and selectable optional sub-modules.

2. The customized container engine according to claim 1, in, The customized container engine consists of a target daemon process, in which the dockerd process, the containerd process and the shim process are integrated, and function calls are used in the target daemon process to implement the functions of each process integrated in the target daemon process.

3. The customized container engine according to claim 2, in, The processes integrated in the target daemon process include a dockerd process, a containerd process, and a shim process; Or, including dockerd process and containerd process; Alternatively, include the containerd process and the shim process.

4. A method for configuring a container engine, in, The method is applied to the customized container engine according to claim 1, and the method comprises: The optional sub-module in the optional functional module is selected according to the business scenario configuration to obtain the customized container engine.

5. The method for configuring a container engine according to claim 4, in, The step of selecting the optional submodule in the optional functional module according to the business scenario configuration to obtain the customized container engine includes: Before compiling the container engine, the customized container engine is generated based on the core functional modules and the configured and selected optional sub-modules.

6. The method for configuring a container engine according to claim 4, in, The step of selecting the optional submodule in the optional functional module according to the business scenario configuration to obtain the customized container engine also includes: After starting the customized container engine, dynamically load the configured and selected optional sub-modules into the customized container engine, or unload the configured and selected optional sub-modules in the customized container engine to generate a new customized container engine.

7. A container startup method, in, The method is applied to the customized container engine as claimed in claim 2 or 3, and the method comprises: Receiving a start request for starting a container through the interface server submodule, and creating a container function based on the start request; The service container corresponding to the start request is started by calling the container function.

8. The container startup method according to claim 7, in, The step of starting the business container corresponding to the start request by calling the container function includes: If the local image does not exist, drag the container image from the image repository as the local image; After the local image is ready, a running command of the local image is generated by calling the container function, and a business container corresponding to the start request is started based on the running command.

9. A host machine, in, The host machine includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the method for configuring the container engine as described in any one of claims 4 to 6 and the steps of the method for starting the container as described in any one of claims 7 to 8 are implemented.

10. A computer-readable storage medium, in, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the container engine configuration method according to any one of claims 4 to 6 and the steps of the container startup method according to any one of claims 7 to 8 are implemented.

Citation Information

Patent Citations

  • Service container engine

    CN103942052A

  • Container cloud construction method for service system and related device

    CN111625317A

  • Container-oriented Linux kernel virtualization system and method

    CN113986449A

  • Container creation method and device, electronic equipment and computer readable storage medium

    CN114840310A

  • Methods, apparatuses, and computer program products for deploying and managing software containers

    US20170052807A1

Cited By

  • Lightweight cloud native traffic detection and protection engine configuration method

    CN119449480A

  • Real-time container engine implementation method based on aneuhua process version operating system

    CN119739464A

  • Rootfs quota management system and method, computer equipment and storage medium

    CN120780441A