Linux environment sharing system and method

By working together with the management service module and the agent module, a containerized Linux environment is created for multiple users in the server resource pool. This solves the problem of container resource contention and downtime caused by multiple users sharing the server, and realizes the elastic use of the container environment and system stability.

CN123138138APending Publication Date: 2026-11-20BEIJING AUTOMOBILE RES GENERAL INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297109.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In a Linux environment with a shared server for multiple users, the issues of container resource contention and server downtime have not been effectively resolved, leading to system instability.

Method used

By managing the command issuance and execution architecture between the service module and the agent module, containerized Linux environments are created on demand for multiple users in the server resource pool, and downtime is avoided through an automatic resource management mechanism.

Benefits of technology

It enables the flexible use of container environments, avoids server downtime, and improves system stability and resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138138A_ABST
    Figure CN123138138A_ABST
Patent Text Reader

Abstract

The application relates to the computer technical field, in particular to a Linux environment sharing system and method. The system comprises a management service module and an agent module. The management service module is used for providing a user operation interface and generating a control instruction corresponding to a user operation. The agent module is arranged on a target server and is in communication connection with the management service module. The agent module is used for receiving the control instruction and creating or changing at least one Linux container environment on the target server based on the control instruction. Thus, through the instruction issuing and executing architecture between the management service module and the agent module, a containerized Linux environment is created for multiple users on demand in a server resource pool, the problem of container resource contention and server downtime caused by multi-user sharing of a server in the related art is solved, and the system automatically performs resource management and control on a high-load container to avoid downtime while ensuring that the container environment flexibly uses server resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a Linux environment sharing system and method. Background Technology

[0002] In the software development process, developers typically need to compile, debug, and test source code in a Linux operating system environment. As development teams grow and projects become more complex, providing team members with an efficient Linux environment while simultaneously making rational use of server resources and reducing hardware costs has become a crucial issue in enterprise R&D efficiency management.

[0003] In related technologies, a container-based Linux environment sharing solution is commonly used to meet the needs of multiple users accessing the same server simultaneously. Operations personnel install the container runtime on the physical server and create a separate container for each developer. Each developer then enters their respective container via container commands or remote login to compile and debug code.

[0004] However, this method is prone to causing container resource contention and server crashes when multiple containers execute high-load tasks such as compilation simultaneously, which urgently needs to be addressed. Summary of the Invention

[0005] This application provides a Linux environment sharing system and method to solve the problems of container resource contention and server downtime caused by multiple users sharing a server in related technologies. It realizes that while ensuring the elastic use of server resources in the container environment, the system can automatically perform resource management on high-load containers to avoid downtime.

[0006] To achieve the above objectives, a first aspect of this application proposes a Linux environment sharing system, comprising: The management service module provides a user interface and generates control commands corresponding to user operations. An agent module is deployed on the target server. The agent module is communicatively connected to the management service module. The agent module is used to receive the control commands and, based on the control commands, create or modify at least one Linux container environment on the target server. There is at least one target server, and one agent module is deployed on each target server.

[0007] According to one embodiment of this application, the management service module includes: The interface interaction unit is used to provide the user operation interface and determine the type of operation performed by the user on the user operation interface. The operation type includes at least one of the following: creating an environment operation, starting an environment operation, stopping an environment operation, deleting an environment operation, or copying an environment operation. The instruction generation unit is used to generate the control instruction according to the operation type, wherein the control instruction is a script format instruction executable by the agent module.

[0008] According to one embodiment of this application, the management service module further includes: An instruction queue unit is used to store target control instructions that are to be sent to the target server from the control instructions; A queue management unit is used to create a corresponding instruction queue unit for each of the agent modules. The instruction distribution unit is used to respond to the instruction acquisition request of the current agent module, determine the target control instruction from the corresponding instruction queue unit, and send the target control instruction to the current agent module.

[0009] According to one embodiment of this application, the instruction distribution unit includes: A queue query subunit is used to respond to the instruction acquisition request and query whether there is a target control instruction to be executed in the corresponding instruction queue unit. A first return subunit is configured to return the target control instruction to be executed to the current agent module when the target control instruction to be executed exists in the corresponding instruction queue unit. A delayed waiting subunit is configured to wait for a preset time when the target control instruction to be executed is not present in the corresponding instruction queue unit, and to detect whether a new target control instruction has been written into the instruction queue unit corresponding to the current agent module. The second return subunit is used to return the new target control instruction to the current agent module when the instruction queue unit corresponding to the current agent module is written with the new target control instruction.

[0010] According to one embodiment of this application, the management service module further includes: A monitoring unit is used to receive the operating status of the target server reported by the proxy module; The control unit is used to suspend or terminate the Linux container environment with the highest resource consumption on the target server when the target server resources are determined to meet a preset stress state based on the running status, and to save a snapshot of the running status of the Linux container environment with the highest resource consumption.

[0011] According to one embodiment of this application, the proxy module includes: An instruction receiving unit is configured to send an instruction acquisition request to the management service module and receive the control instruction. An instruction execution unit is configured to execute the control instructions on the target server to create or modify at least one of the Linux container environments on the target server.

[0012] According to one embodiment of this application, the proxy module further includes: A status reporting unit is used to report the operating status of the target server to the management service module.

[0013] According to one embodiment of this application, the proxy module further includes: A startup command rewriting unit is used to rewrite the initial startup command of the selected container image to create or modify at least one of the Linux container environments based on the rewritten startup instructions.

[0014] According to one embodiment of this application, the proxy module further includes: A remote management unit is configured to respond to access commands issued by the management service module, and based on the access commands, initiate a temporary web terminal service on the target server, and set a random password for the temporary web terminal service to generate a remote management connection to the target server with a preset validity period.

[0015] The Linux environment sharing system proposed in this application provides a user interface through a management service module and generates control commands corresponding to user operations. An agent module deployed on the target server receives these control commands and creates or modifies at least one Linux container environment on the target server based on these commands. Thus, through the command issuance and execution architecture between the management service module and the agent module, containerized Linux environments are created on demand for multiple users within the server resource pool. This solves the problems of container resource contention and server downtime caused by multiple users sharing the server in related technologies. It achieves both ensuring the elastic use of server resources by the container environment and automatically managing resources for high-load containers to prevent downtime.

[0016] To achieve the above objectives, a second aspect of this application proposes a Linux environment sharing method. This method employs the Linux environment sharing system of the first aspect embodiment and includes the following steps: The management service module provides a user interface and generates control commands corresponding to user operations. The agent module receives the control commands and, based on the control commands, creates or modifies at least one Linux container environment on the target server.

[0017] The Linux environment sharing method proposed in this application creates containerized Linux environments for multiple users on demand in the server resource pool through the instruction issuance and execution architecture between the management service module and the agent module. This solves the problem of container resource contention and server downtime caused by multiple users sharing the server in related technologies. It enables the system to automatically manage resources for high-load containers to avoid downtime while ensuring the elastic use of server resources in the container environment.

[0018] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a block diagram of a Linux environment sharing system according to an embodiment of this application; Figure 2 This is a schematic diagram illustrating the instruction issuance and execution process according to an embodiment of this application; Figure 3 This is a schematic diagram of the overall deployment architecture of a Linux environment sharing system according to an embodiment of this application; Figure 4 This is a schematic diagram of the container tool selection process of a container environment management module according to an embodiment of this application; Figure 5 This is a schematic diagram illustrating the process of creating a Linux environment according to an embodiment of this application; Figure 6 This is a schematic diagram illustrating the execution flow of the server registration and proxy module according to an embodiment of this application; Figure 7 This is a flowchart of a Linux environment sharing method provided according to an embodiment of this application. Detailed Implementation

[0020] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0021] The Linux environment sharing system and method proposed according to embodiments of this application are described below with reference to the accompanying drawings.

[0022] Before introducing the Linux environment sharing system proposed in the embodiments of this application, let's briefly introduce the relevant technical background.

[0023] In software development, developers often need to use Linux environments for compiling and debugging source code. The main approaches include: installing a Linux operating system on a personal computer or using WSL (Windows Subsystem for Linux), but personal computers are less powerful than servers, and computationally intensive tasks like compilation are time-consuming; allocating a separate server for each developer, but resource utilization is low, and performance is wasted during non-intensive task periods; creating multiple system accounts on a single server for multiple users to share, but poor isolation between accounts means one user's mistake can affect others, and multiple users performing high-load tasks simultaneously can exhaust server resources or even cause a crash; creating multiple virtual machines on a single server for multiple users to share, but virtual machines themselves consume significant CPU (Central Processing Unit) and memory resources, resulting in high system overhead; creating multiple containers on a single server for multiple users to share, but container management is complex, requiring users to master container technology for a good experience, and multiple users running high-load tasks simultaneously also risk exhausting resources and causing a crash. If resource limits are preset for containers, even when the server is idle, a single task cannot fully utilize its performance.

[0024] Based on the above problems, this application proposes a Linux environment sharing system. Through the instruction issuance and execution architecture between the management service module and the agent module, containerized Linux environments are created on demand for multiple users in the server resource pool. This solves the problems of container resource contention and server downtime caused by multiple users sharing the server in related technologies. It realizes that while ensuring the elastic use of server resources in the container environment, the system can automatically perform resource management on high-load containers to avoid downtime.

[0025] Figure 1 This is a block diagram of a Linux environment sharing system according to an embodiment of this application.

[0026] For example, such as Figure 1 As shown, the Linux environment sharing system 10 includes a management service module 100 and an agent module 200 deployed on the target server. The management service module 100 provides a user interface and generates control commands corresponding to user operations. The agent module 200 communicates with the management service module 100, receives control commands, and creates or modifies at least one Linux container environment on the target server based on these commands. There are at least one target server, and one agent module 200 is deployed on each target server.

[0027] In this context, a Linux container environment refers to an isolated runtime environment created based on Linux container technology. Containers share the host operating system's kernel and achieve isolation of resources such as processes, networks, and file systems through namespaces, while resource quota management is achieved through cgroups. Unlike virtual machines, containers do not need to emulate hardware or run a complete guest operating system, thus resulting in lower resource overhead and faster startup speeds. In this embodiment, each user's Linux container environment is equivalent to an independent Linux workspace.

[0028] The management service module 100 is the central control node in this embodiment. Deployed on the server side, it serves as the core control plane of the entire system, responsible for providing the user interface, receiving user operation requests, and generating corresponding control commands. The proxy module 200 is a lightweight management program deployed on each target server in this embodiment, acting as an execution proxy between the management service module and the target servers. One proxy module 200 is deployed on each target server. This proxy module 200 actively establishes a communication connection with the management service module 100, receives control commands from the management service module 100, and executes corresponding operations on its target server. In this embodiment, a target server refers to a physical server or a node in a physical server cluster used to provide a Linux container environment. The proxy module 200 is deployed on it, and a container runtime environment is running on it, used to actually create and run the user's Linux container environment. In this embodiment, there can be one or more target servers; that is, the Linux environment sharing system 10 can simultaneously manage one or more target servers, forming a server resource pool.

[0029] In other words, the Linux environment sharing system 10, through a distributed architecture of centralized management and agent execution, provides multiple users with Linux container environments that can be created on demand on a server resource pool. Specifically, the Linux environment sharing system 10 may include a management service module 100 and an agent module 200 deployed on the target servers. The management service module 100 serves as the unified entry point and control center of the system, providing a user interface that allows users, even without container technology knowledge, to submit requests to create or modify Linux environments. Upon receiving user operations, the management service module 100 translates the user's intent into standardized control commands that can be recognized and executed by the agent module 200. The agent module 200 is deployed on the target servers, with one agent module 200 deployed on each target server. There can be one or more target servers. The agent module 200 establishes a communication connection with the management service module 100 to receive control commands issued by the management service module 100 and execute corresponding operations on its target server, such as pulling a specified container image, starting a container instance, and adjusting container configurations, thereby creating one or more Linux container environments corresponding to the user's needs on the target server. Administrators can generate a registration command through the management service module 100. After executing this command on any Linux target server, the server will be managed by the Linux environment sharing system 10 and become a member of the shared server resource pool. When multiple servers exist, the registration command can be executed separately to add each server to the resource pool in sequence. Each agent module 200 manages its respective target server, collectively forming a server resource pool that can be uniformly scheduled. In addition, both administrators and users can create new container images in the image resource pool of the Linux environment sharing system 10 as customized Linux environment templates. Users only need to select a server in the server resource pool and an image in the image resource pool to create their own customized Linux environment with one click.

[0030] To further enhance container security and mitigate escape risks, this application embodiment can combine various container runtimes (i.e., the underlying programs that are actually responsible for starting, running, and stopping containers, such as runc, crun, sysbox-runc, nvidia-container-toolkit, etc.) on the basis of common container technologies. The Linux environment sharing system 10 automatically matches and selects the appropriate container runtime to start the container based on the additional functions selected by the user, thereby ensuring performance while taking into account the security and functional requirements in different scenarios.

[0031] Optionally, in some embodiments, the management service module 100 includes: an interface interaction unit and an instruction generation unit, wherein the interface interaction unit is used to provide a user operation interface and determine the type of operation performed by the user on the user operation interface, the operation type including at least one of creating an environment operation, starting an environment operation, stopping an environment operation, deleting an environment operation, or copying an environment operation; the instruction generation unit is used to generate control instructions according to the operation type, the control instructions being script format instructions executable by the agent module 200.

[0032] Script-format instructions refer to executable instruction sequences written in a scripting language (such as Linux Shell scripts). After receiving these instructions on the target server, the agent module 200 can directly invoke the script interpreter on the target server to execute them without additional parsing. Script-format instructions offer good flexibility and scalability, covering various container operations such as creation, startup, shutdown, and deletion.

[0033] Specifically, the management service module 100 may include a user interface interaction unit and an instruction generation unit. The user interface interaction unit is responsible for direct interaction with the user, presenting an operation interface, and receiving operations performed by the user on the interface. Operations that the user can perform on the interface include, but are not limited to, creating, starting, stopping, deleting, and copying an environment, as well as other operations such as querying environment status and modifying environment configuration. The user interface interaction unit also identifies the type of user operation and obtains user input parameters (such as environment name, target server, selected image, additional function options, etc.), converting user clicks, selections, and fill-in operations on the graphical interface into structured operation requests, which are then passed to the instruction generation unit for processing.

[0034] After receiving the operation request from the interface interaction unit, the instruction generation unit can generate one or more script-formatted control instructions that can be executed by the agent module 200, based on the operation type and corresponding parameters, and according to a preset instruction template or generation rule. Different types of user operations correspond to different types of control instructions. For example, creating an environment corresponds to a container creation instruction, starting an environment corresponds to a container startup instruction, and deleting an environment corresponds to a container deletion instruction. Each type of control instruction follows a unified script format specification so that the agent module 200 can correctly identify and execute it. For example, the control instruction corresponding to creating an environment may include a command to pull a container image, parameters for creating the container (such as container name, CPU and memory quotas, data volume mount configuration, network configuration, etc.), a command to start the container instance, and additional configuration commands generated based on the user's selected additional functions. The instruction generation unit combines the above multiple commands into a complete Shell script instruction and sends it to the agent module 200 as a control instruction. After receiving the script-formatted instruction, the agent module 200 directly calls the Shell interpreter on its target server to execute the script, thereby automatically completing all the operation steps of environment creation.

[0035] Therefore, by setting up interface interaction units and command generation units, the management service module automatically converts the user's operational intentions on the graphical interface into script commands that can be directly executed by the agent module. This eliminates the need for users to memorize any container operation commands or concern themselves with the underlying implementation details, significantly lowering the technical barrier for non-professional users to use containers. Simultaneously, since control commands are issued in script format, the agent module does not need complex command parsing logic; it only needs script execution capabilities, which helps reduce the complexity and resource consumption of the agent module.

[0036] Optionally, in some embodiments, the management service module 100 further includes: an instruction queue unit, a queue management unit, and an instruction distribution unit, wherein the instruction queue unit is used to store target control instructions to be sent to the target server; the queue management unit is used to create a corresponding instruction queue unit for each agent module 200; and the instruction distribution unit is used to respond to the instruction acquisition request of the current agent module 200, determine the target control instruction from the corresponding instruction queue unit, and send the target control instruction to the current agent module 200.

[0037] Specifically, the management service module 100 may further include an instruction queue unit, a queue management unit, and an instruction distribution unit. The target control instructions generated by the management service module 100 for the agent module 200 are not directly sent out one by one in real time, but are first stored in the instruction queue unit, and then actively retrieved by the agent module 200 as needed. That is, the queue management unit is used to create an independent instruction queue unit for each registered agent module 200. Each instruction queue unit adopts a first-in-first-out message queue data structure to store the target control instructions to be sent to the corresponding target server. The instruction queue units corresponding to each agent module 200 are independent of each other, and control instructions for different target servers are stored in their respective instruction queue units without interference. Figure 2 As shown, this embodiment of the application creates an independent instruction queue unit for each proxy module 200 on each target server, so that control instructions for different target servers are stored in their respective queues, and the instruction processing of different target servers does not affect each other. Even when multiple users simultaneously submit operations such as creating, starting, stopping, or deleting an environment on the same target server, the control instructions corresponding to each operation are arranged sequentially in the instruction queue unit corresponding to the target server according to the order of generation. The proxy module 200 retrieves and executes them one by one in a first-in-first-out order, thereby ensuring that multiple operations on the same target server are executed in sequence and avoiding state conflicts or configuration interference caused by concurrent execution of operations. Through the above-mentioned independent instruction queue concurrency control mechanism, in the scenario of multiple users sharing a server resource pool, even if multiple people submit operation requests to the same target server at the same time, the operation instructions can still be executed in an orderly manner without interfering with each other, ensuring the reliability and consistency of system operation.

[0038] The instruction distribution unit responds to instruction retrieval requests from the current agent module 200. Based on the agent module identifier information carried in the request, it determines the instruction queue unit corresponding to the current agent module 200, retrieves the target control instruction from the head of the queue, and sends the target control instruction to the current agent module 200. If the corresponding instruction queue unit does not contain a target control instruction to be executed, the instruction distribution unit returns an empty response to the current agent module 200. After receiving the empty response, the agent module 200 waits for a predetermined time interval before initiating the next instruction retrieval request to avoid frequent invalid requests consuming network resources and processing overhead.

[0039] Through the aforementioned queue caching and on-demand instruction delivery architecture, the management service module and each agent module do not need to maintain persistent long connections, and the agent modules do not need to have complex message listening capabilities, thus reducing the implementation complexity of the agent modules. At the same time, since each agent module has an independent instruction queue unit, the instruction processing delay or abnormality of one agent module will not affect the normal instruction retrieval and execution of other agent modules, thereby enhancing the overall stability and scalability of the system.

[0040] Optionally, in some embodiments, the instruction distribution unit includes: a queue query subunit, a first return subunit, a delay waiting subunit, and a second return subunit. The queue query subunit is used to respond to an instruction acquisition request and query whether a target control instruction to be executed exists in the corresponding instruction queue unit. The first return subunit is used to return the target control instruction to be executed to the current agent module if a target control instruction to be executed exists in the corresponding instruction queue unit. The delay waiting subunit is used to wait for a preset time and detect whether a new target control instruction has been written to the instruction queue unit corresponding to the current agent module if no target control instruction to be executed exists in the corresponding instruction queue unit. The second return subunit is used to return a new target control instruction to the current agent module if a new target control instruction has been written to the instruction queue unit corresponding to the current agent module.

[0041] The preset duration refers to the waiting time parameter pre-configured by the system, which is uniformly set by the management service module 100. This parameter determines the maximum waiting time for the management service module 100 when the queue is empty when the agent module 200 requests a command. This preset duration can be flexibly adjusted by the administrator according to actual operation and maintenance needs, and the adjustment will take effect for all agent modules 200 without requiring individual updates to the program configuration of each agent module 200.

[0042] Specifically, the instruction distribution unit may include a queue query subunit, a first return subunit, a delayed waiting subunit, and a second return subunit. When the proxy module 200 initiates an instruction retrieval request to the management service module 100, the queue query subunit first responds to the request, locates the instruction queue unit corresponding to the proxy module 200 based on the proxy module identification information carried in the request, and queries whether there is a target control instruction to be executed in the instruction queue unit. If there is a target control instruction to be executed in the corresponding instruction queue unit (for example, the control instruction corresponding to the previously submitted environment creation operation has not yet been retrieved), the first return subunit retrieves the target control instruction from the queue and immediately returns it as a response to the proxy module that initiated the request (i.e., the "immediately available" scenario). The proxy module 200 executes the instruction immediately upon receiving it, without waiting. If there is no target control instruction to be executed in the corresponding instruction queue unit, that is, there is currently no operation that the proxy module 200 needs to perform, the delayed waiting subunit initiates a delayed waiting mechanism: instead of immediately returning an empty response to the proxy module 200, it waits on the management service module 100 side for a preset duration (e.g., 5 seconds). Within the preset time period, the delayed waiting subunit continuously monitors whether a new target control instruction has been written to the instruction queue unit corresponding to the agent module 200. For example, after the agent module 200 initiates a request and during the waiting period, another user submits an environment creation operation for the target server where the agent module 200 is located through a graphical interface. The management service module 100 generates the corresponding target control instruction and writes it to the instruction queue unit of the agent module 200. This write event will be detected by the delayed waiting subunit. If a new target control instruction is detected to be written within the preset time period, the second return subunit immediately returns the new instruction as a response to the agent module 200, and the agent module 200 then executes the instruction without waiting for the next polling cycle.

[0043] If no new target control instruction is written to the corresponding instruction queue unit within the entire preset time period, the second return subunit returns an empty response to the agent module 200 after the preset time period expires. Upon receiving the empty response, the agent module 200 indicates that there are currently no instructions to be executed and can wait for a predetermined time interval before initiating the next instruction retrieval request.

[0044] The management service module 100 in this embodiment can adopt a front-end and back-end separation architecture in its physical deployment, such as... Figure 3As shown, the front end can include a gateway and a page service to provide the aforementioned graphical user interface and serve as the unified entry point for routing and distributing user requests. The back end can include a service layer and a storage layer. The service layer mainly includes a controller service and a DinD (Docker-in-Docker, running the Docker daemon in a container) service. The controller service processes user requests and generates corresponding control commands, while monitoring the status reported by the shared server. The DinD service supports users in building and pushing container images in the container environment. The storage layer mainly includes a relational database (for storing structured data such as user information, server information, and environment configuration), a time-series database (for storing time-series monitoring data such as the running status reported by the agent module), and an image repository (for storing container images). The graphical interface provided by the page service can specifically include a server management interface (for registering, deleting, and updating the agent module), a user container environment management interface (for creating, starting, stopping, deleting, and copying container environments), a container image management interface (for creating, modifying, and deleting container images), as well as interfaces for resource monitoring and operation auditing.

[0045] The controller service in the management service module 100 is used to translate user operations into control instructions that other components can recognize, including but not limited to target control instructions that the agent module 200 needs to execute, database operation instructions, instructions for building images for the container image service, and instructions for pushing images to the repository. Functionally, the controller service can be divided into multiple modules such as a server management module, a container environment management module, an image management module, and an agent program management module. These modules are used to handle business requests from the front-end page and the agent module 200, respectively. In actual deployment, the above functional modules can be split into multiple independent microservices as needed. This will only affect the deployment and operation methods, and will not affect the key business processes and functional effects of this embodiment. During the control command issuance process, the agent program management module uses the aforementioned delayed response mechanism to distribute commands to the agent module 200: when the agent module 200 requests a command, if the corresponding command queue already contains a target control command to be executed, it immediately returns that command as a response; if the queue is empty, it waits for a preset time. During this waiting period, if the container environment management module generates a new control command based on user operations and writes it into the queue, the command is immediately retrieved and returned as a response; if no new command is received after the waiting period, an empty response is returned. Operations such as starting the environment, stopping the environment, deleting the environment, and deleting the server all follow the same command issuance process, the only difference being the content of the control commands corresponding to different operations.

[0046] Each shared server (i.e., the target server) is equipped with an agent module 200. The agent module 200 actively establishes a communication connection with the controller service, receives control commands, and executes corresponding container management operations on its server, thereby creating the user's container environment on the shared server. The user's container environment also deploys auxiliary components required by the system, such as the ttyd tool (an open-source service program that maps a command-line terminal to a web browser), the DinD business container (deployed only when the user selects the Docker-included feature during environment creation), and the controller agent program. Through this deployment architecture, the system implements a distributed Linux environment sharing solution with centralized management and agent execution. Each target server can be managed without opening external inbound ports, providing good network security and horizontal scalability.

[0047] The core design purpose of the delayed response mechanism is twofold: First, it eliminates the need for the proxy module 200 deployed on the target server to maintain complex message listening logic or persistent long connections. Instead, it only needs to periodically initiate short connection requests and receive responses, reducing the design complexity of the proxy module 200 and its CPU resource consumption during runtime. Second, the waiting time parameter is uniformly controlled by the management service module 100. Adjusting this parameter will synchronously affect the request behavior of all proxy modules 200, eliminating the need to modify or upgrade the program code of each proxy module 200, thus facilitating unified operation and maintenance management of large-scale clusters.

[0048] Through the aforementioned delayed waiting mechanism, when a user submits an operation, the corresponding target control command can be returned immediately without waiting for the next polling cycle of the agent module, achieving real-time delivery of control commands. The agent module is designed to be simple, only needing to periodically initiate short connection requests to the management service module and receive responses, without maintaining long connections or implementing complex message queue consumption logic, thereby reducing the agent module's runtime resource consumption. Furthermore, the preset duration is uniformly configured by the management service module, and administrators can adjust this parameter according to actual operational needs. After adjustment, the waiting behavior of all agent modules takes effect synchronously, without requiring individual modification or upgrades to the agent module's program code.

[0049] Optionally, in some embodiments, the management service module 100 further includes a monitoring unit and a control unit, wherein the monitoring unit is used to receive the running status of the target server reported by the agent module 200; the control unit is used to suspend or terminate the Linux container environment with the highest resource consumption on the target server when the target server resources are determined to meet the preset stress state based on the running status, and save a snapshot of the running status of the Linux container environment with the highest resource consumption.

[0050] The "running status" refers to the various operational metrics data of the target server reported by the agent module 200, including but not limited to the server's available memory, used memory, CPU utilization, average CPU load, disk utilization, number of currently running containers, and resource usage of each container. This data reflects the resource usage of the target server and its container environments at the current moment, serving as the data basis for the management unit to determine resource scarcity and select containers. The preset scarcity status is a set of criteria used to determine whether the target server's resources are under strain. For example, when the target server's available memory is below a certain preset threshold (e.g., less than 10% of total memory or less than 2GB), it is considered to meet the preset scarcity status. This preset condition can be flexibly configured by the administrator based on the server's actual hardware configuration and business needs. The "running status snapshot" refers to the persistent saving of the complete running status of the container environment when it is paused or terminated, including but not limited to the running status of all processes within the container, memory data, file handles, open file offsets, pipe status, and socket connection status. This snapshot allows the container environment to be restored to its running state before being paused or terminated when resources are available, enabling tasks to resume from where they left off and preventing the loss of user work.

[0051] Specifically, the management service module 100 may further include a monitoring unit and a control unit. The monitoring unit receives the operating status reports from the agent modules 200 on each target server at a predetermined frequency. Each agent module 200 periodically collects resource usage data (including but not limited to available memory, CPU load, disk I / O) of its target server, as well as the resource usage of all container environments running on that server (such as memory usage and CPU utilization of each container), and packages and reports the above data to the monitoring unit of the management service module 100. After receiving the reported data, the monitoring unit stores it in a database, which serves as the data basis for the control unit to determine resource scarcity and select containers.

[0052] The management and control unit proactively performs security management and control operations on the container environments on target servers based on the operational status received by the monitoring unit. Specifically, the management and control unit analyzes the operational status of each target server in real time according to preset judgment rules (for example, when the available memory of a target server is lower than a preset threshold (such as when the available memory is less than 10% of the total memory or less than 2GB), it is considered to meet a preset stress state). When a target server is determined to meet the preset stress state, the management and control unit identifies one or more Linux container environments with the highest current resource consumption from all container environments running on that target server, and performs pause or termination operations on these container environments, while saving a snapshot of the operational status of those container environments.

[0053] By pausing or terminating the container environment with the highest resource consumption, the CPU and memory resources occupied by that container environment are released, and the available resources of the target server recover accordingly, thus avoiding slow server response or even crashes due to resource exhaustion. Simultaneously, a saved snapshot of the running state records the complete running data of the container environment at the moment of pause or termination. Subsequently, when the target server's resources recover to a sufficient state, the system can restore the container environment to its running state before pause or termination based on this snapshot, preserving the user's work progress without having to start the task from scratch. Through the coordinated operation of the aforementioned monitoring and control units, this system can, in scenarios with multiple users sharing a server, without pre-setting resource usage limits for each container, perceive server resource usage in real time and proactively intervene and control resources when they are scarce. This ensures server stability and availability while also accommodating the elastic usage needs of individual user container environments for the server's full performance resources.

[0054] Optionally, in some embodiments, the agent module 200 includes: an instruction receiving unit and an instruction execution unit, wherein the instruction receiving unit is used to send an instruction acquisition request to the management service module 100 and receive control instructions; the instruction execution unit is used to execute control instructions on the target server to create or modify at least one Linux container environment on the target server.

[0055] Specifically, the proxy module 200 may include an instruction receiving unit and an instruction execution unit. The instruction receiving unit is responsible for instruction interaction between the proxy module 200 and the management service module 100. The proxy module 200 acquires control instructions through an active pull mechanism. Specifically, the instruction receiving unit sends an instruction acquisition request to the management service module 100 at predetermined intervals. This request carries the proxy module 200's own identification information, instructing the management service module 100 to locate the corresponding control instruction to be executed. Upon receiving the request, the management service module 100 retrieves the control instruction at the head of the corresponding instruction queue unit as a response and returns it to the proxy module 200. The instruction receiving unit receives this control instruction and then passes it to the instruction execution unit. If the management service module 100 returns an empty response, it indicates that there are currently no control instructions that the proxy module 200 needs to execute, and the instruction receiving unit waits for a predetermined time interval before initiating the next instruction acquisition request.

[0056] After receiving the control command from the command receiving unit, the command execution unit executes the control command on the target server where the agent module 200 resides. Specifically, when the control command is an environment creation command, the command execution unit, based on the container image information and container configuration parameters (such as container name, resource quota, network configuration, data volume mount configuration, etc.) carried in the command, calls the container runtime (such as Docker, Podman, etc.) on the target server to perform container creation and startup operations, thereby creating a new Linux container environment on the target server. When the control command is an environment modification command (such as starting, stopping, or deleting a container), the command execution unit, based on the operation type and target container identifier in the command, calls the container runtime to perform the corresponding operation on the specified container.

[0057] Through the cooperation of the instruction receiving unit and the instruction execution unit, the proxy module operates in a simple request-execution-re-request loop mode, eliminating the need to maintain complex message listening or event-driven mechanisms, thus reducing the implementation complexity and runtime resource consumption of the proxy module. Furthermore, since the proxy module actively initiates connections and requests, the target server does not need to open inbound ports for the management service module to connect proactively, which improves the network security and manageability of the target server.

[0058] Optionally, in some embodiments, the agent module 200 further includes a status reporting unit, which is used to report the running status of the target server to the management service module 100.

[0059] Specifically, the agent module 200 may further include a status reporting unit. This unit periodically collects resource usage data from the target server at predetermined intervals (e.g., every 10 or 30 seconds). This data includes overall server resource metrics (e.g., available memory size, CPU utilization, and average load) and resource usage of all container environments on the server (e.g., memory and CPU usage of each container). After collection, the status reporting unit packages the aforementioned operational status data and reports it to the monitoring unit of the management service module 100 via the communication connection between the agent module 200 and the management service module 100. Upon receiving the reported data, the monitoring unit stores it in a database for use by the management unit when determining resource scarcity and selecting containers.

[0060] Through the periodic reporting mechanism of the status reporting unit, the management service module can perceive the resource usage of each target server in real time. When multiple target servers form a resource pool, the management service module can, based on the operational status data reported by each server, comprehensively grasp the load of each server in the entire resource pool from a global perspective. This allows it to recommend the most suitable server when users create environments and provides a basis for proactive security management decisions. Furthermore, since the reporting cycle is uniformly configured by the management service module, administrators can flexibly adjust the reporting frequency according to actual operational needs: a shorter reporting cycle can be used for server resource pools with frequent resource changes and large load fluctuations to improve monitoring sensitivity, while a longer reporting cycle can be used for server resource pools with relatively stable resources to reduce network bandwidth and storage overhead. Moreover, the adjustment takes effect synchronously across all agent modules, eliminating the need to upgrade agent module programs individually, thus facilitating the operation and maintenance management of large-scale clusters.

[0061] Optionally, in some embodiments, the agent module 200 further includes a startup command rewriting unit, which is used to rewrite the initial startup command of the selected container image to create or modify at least one Linux container environment based on the rewritten startup command.

[0062] Specifically, the agent module 200 may also include a startup command rewriting unit. Each container image contains an initial startup command preset by the image creator during its construction (such as / bin / bash for the Ubuntu image). When a user submits a request to create an environment through the graphical interface of the management service module 100, and selects a specific container image and the required additional functions (such as automatically starting the SSH (Secure Shell) service, web (World Wide Web) terminal service, etc.), the management service module 100 generates control instructions for creating the environment and sends them to the agent module 200. After receiving the control instructions, the startup command rewriting unit of the agent module 200 can first parse the initial startup command of the selected container image, and then generate corresponding additional initialization actions according to the additional functions selected by the user (such as starting the SSH daemon / usr / sbin / sshd -D, starting the web terminal service / usr / bin / ttyd -p 7681 bash, creating a user account and setting a password, etc.), and combine these additional commands into a new startup command by concatenating them before or after the initial startup command, or by replacing the initial startup command with a wrapper script. After the rewriting is completed, the startup command rewriting unit uses the rewritten startup command as the startup entry point of the container, calls the container runtime to create the container, so that the container automatically executes all preset initialization operations when it starts.

[0063] Through the dynamic rewriting mechanism of the startup command rewriting unit, this system can generate customized container environments with different functions based on a unified container image, according to each user's individual needs, without the need to pre-build and maintain independent container images for each function combination. Even if users do not have container image creation skills, they do not need to write complex startup scripts. They only need to select the required additional functions on the graphical interface, and the system can automatically complete the rewriting of startup commands and the customized creation of containers, thereby lowering the user threshold. At the same time, since the startup command rewriting operation is dynamically executed on the proxy module side of the target server, there is no need to modify the underlying container image. Environments created by different users based on the same image still share the underlying file system of the image, and no additional storage space is occupied due to customized rewriting. This is beneficial for saving storage resources and improving image reuse efficiency in large-scale user scenarios.

[0064] like Figure 4 As shown in the embodiments of this application, different implementation methods are used to support different types of additional functional requirements. For some additional functions (such as web terminal services, Docker client commands, etc.), this system can provide them by mounting executable files in the user's container environment. That is, when the container is created, the corresponding executable file is mounted inside the container, so that the user's container environment can directly use these functions after it starts. For other additional features, such as hot migration of compute tasks (when a user container's CPU or memory usage is high and the target server's resources are insufficient, the container is directly migrated to another target server with sufficient resources to continue running), automatic queuing of compute tasks (when a user container's CPU or memory usage is high and the target server's resources are insufficient, all processes in the container are frozen using the CRIU (Checkpoint / Restore In Userspace) tool, saving all process states, memory data, file handles, open file offsets, pipe states, socket connection states, etc., and resumed from the pause point when resumed later), and CUDA (Compute Unified Device Architecture) acceleration, this system automatically matches and selects appropriate container tools and runtimes to start the container based on the type of additional feature selected by the user. This enables the container environment to have the underlying support required for the selected additional features without requiring manual configuration by the user.

[0065] Furthermore, for user environments that require Docker container service support (i.e., users want to be able to execute Docker commands in their created Linux environment to create new containers or build new container images, just like a virtual machine), this system can adopt a sidecar-based DinD solution. This involves deploying a DinD business container next to the user's container environment. This business container runs a complete Docker daemon process inside. Docker commands executed by the user in their Linux environment can communicate with the DinD business container through a mounted Docker client, thereby enabling the invocation of Docker functions within the container without exposing the host machine's Docker daemon process to the user, thus balancing functional integrity and security.

[0066] The following is combined with Figure 5 The process for creating a Linux environment shown further explains the implementation of the aforementioned additional functions during the specific creation process.

[0067] like Figure 5 As shown, after the user fills out the environment creation form (including environment name, target server, selected image, and additional function options) and submits the creation request through the graphical interface of the management service module 100, the management service module 100 checks the validity of the request parameters. Then, based on the startup command and additional function requirements of the user's selected image, it generates control instructions containing complete environment configuration and sends them to the agent module 200 on the corresponding target server. Upon receiving the control instructions, the agent module 200 parses the startup command of the selected container image, generates a file directory mounting scheme based on the additional functions, and determines the container tools and runtime scheme. Simultaneously, it injects the account password into the container by rewriting the container image startup command, and automatically runs background services such as web terminal service and SSH service upon startup. After completing the above configuration, the agent module 200 calls the container runtime to create and start the container, thereby automating the creation of the user's container environment. Through this process, users only need to fill out a form on the graphical interface to complete the creation of a Linux environment, without needing to concern themselves with any details of the underlying container technology, significantly lowering the barrier to entry for non-professional users.

[0068] Optionally, in some embodiments, the proxy module 200 further includes a remote management unit, which is used to respond to the access command issued by the management service module 100, and to start a temporary web terminal service on the target server based on the access command, and to set a random password for the temporary web terminal service to generate a remote management connection to the target server with a preset valid duration.

[0069] The access command refers to a special type of control command issued by the management service module 100 to the agent module 200, instructing the agent module 200 to temporarily open a remote management access channel on the target server. This command can be triggered by the administrator through the graphical interface of the management service module 100 (e.g., clicking a button on a page), rather than a regular operation command from a normal user. The temporary web terminal service refers to a web-based terminal service program (such as the ttyd tool) temporarily started on the target server. This service program can map the input and output of the Linux command-line terminal to a browser page via HTTP (Hypertext Transfer Protocol) / HTTPS (Hypertext Transfer Protocol Secure) protocols, allowing the administrator to access the command-line interface of the target server through a browser. This service is temporary, not persistent, and is only started when needed and stopped after use. The random password refers to a sufficiently complex temporary password automatically generated by the system when the temporary web terminal service is started, used for authentication of one-time access to the terminal service. The password generated each time the temporary web terminal service is started is different, and the password is only valid within the current connection session. Compared to fixed passwords or passwordless access, random password mechanisms effectively prevent unauthorized access and ensure the security of the target server. The preset validity period refers to the period of validity that the system pre-sets for the remote management connection; the connection automatically expires after this period. This parameter limits the maximum lifespan of the remote management connection to prevent security risks caused by administrators forgetting to actively close the connection. The preset validity period can be configured by system default or temporarily specified by the administrator based on actual operational needs when remote management is triggered.

[0070] Specifically, the agent module 200 may also include a remote management unit. When an administrator needs to perform maintenance or troubleshooting on a target server (e.g., check server configuration, install software packages, view log files, debug network connections, etc.), they can trigger remote management operations with a single click through the graphical interface of the management service module 100. Upon receiving this operation, the management service module 100 generates an access command and sends it to the agent module 200 on the target server. Upon receiving the access command, the remote management unit of the agent module 200 starts a temporary web terminal service (such as the ttyd tool) on the target server. This service presents the Linux command-line terminal via the web, allowing the administrator to access the target server's command-line interface simply through a browser without needing to install an additional SSH client or obtain SSH login credentials for the target server. Simultaneously, the remote management unit automatically generates a random password for this temporary web terminal service, serving as the sole authentication credential for accessing the terminal service. The administrator must enter this random password in the browser to successfully establish a remote management connection, effectively preventing unauthorized access. In addition, the remote management connection is set to have a preset validity period (such as 10 minutes, 30 minutes or 1 hour, which can be configured by the system default or customized by the administrator according to the operation and maintenance needs when remote management is triggered). That is, the connection is only valid within the preset validity period from the time it is established. After the preset validity period is exceeded, the connection will automatically expire. Even if the administrator forgets to actively close the connection, the server's management entry will not be exposed indefinitely.

[0071] Through the aforementioned remote management unit, this system provides administrators with a convenient and secure target server maintenance channel. On the one hand, administrators do not need to obtain the target server's IP address, SSH port, login password, or key in advance, nor do they need to install a dedicated maintenance client. They can simply click a button on the graphical page of the management service module to enter the target server's command-line environment, greatly reducing the complexity and time cost of maintenance operations. On the other hand, through a dual security mechanism of random password authentication and preset validity period, the access permissions and exposure time of the maintenance channel are effectively limited, significantly reducing the security risks caused by long-term open maintenance ports or password leaks.

[0072] like Figure 6As shown, in this embodiment of the application, during initial deployment, the agent module 200 is registered by the administrator through the management service module 100. After the registration instruction is executed on the target server, the agent module 200 is installed on the target server. Upon initial startup, the agent module 200 automatically detects the software environment of the target server and, based on the detection results, automatically installs the required container tools (such as Podman, Docker, Containerd, etc.) and container runtimes (such as runc, cron, sysbox-runc, nvidia-container-toolkit, etc.), as well as other dependent software required for the system's operation, completing the environment initialization of the target server. After initialization, the agent module 200 proactively initiates a communication connection with the management service module 100, and subsequently cyclically reports the monitoring data of the target server (including server resource status and the status of each container running on the server). Simultaneously, it continuously receives and executes operation instructions issued by the management service module 100 (the specific form of the operation instructions can be a Linux Shell script), such as creating one or more containers in the user environment, starting, stopping, or deleting containers in the user environment, and hot updating of the agent module 200's own program. The reporting interval of monitoring data is uniformly controlled by the preset timeout duration of the management service module 100. After adjusting this duration, all agent modules 200 will take effect simultaneously.

[0073] In terms of remote operation and maintenance, the agent module 200 supports responding to the command to start a temporary web terminal issued by the management service module 100, and starts a temporary web terminal service with random password authentication on the target server. This allows the administrator to establish a remote management connection with password authentication on the target server with one click through the button on the graphical interface of the management service module 100. This makes it convenient for the administrator to directly execute any Linux command on the target server for operation and maintenance and troubleshooting.

[0074] In terms of proactive security control, the agent module 200 independently executes multiple security control measures separate from the management service module 100: When the duration of a temporary web terminal connection on the target server exceeds a preset threshold, the connection is proactively terminated; the resource usage of each container environment on the target server is continuously monitored and analyzed; when the overall resources of the target server are insufficient (e.g., available memory is below a preset threshold), the container environment with the highest memory usage or related processes within the container are automatically paused or stopped, and the container is suspended or a process snapshot is recorded using the CRIU (Checkpoint / Restore In Userspace) tool, while simultaneously notifying the user and administrator of the environment via email or instant messaging software; when the available resources of the server recover to exceed the memory occupied by the automatically stopped environment, the environment is automatically restored. These proactive security control measures are executed locally in the agent module 200. Even if a network failure occurs between the target server and the management service module 100, the proactive security control function can still function normally, as notification messages cannot be sent in a timely manner, thus ensuring the stability and availability of the target server under extreme conditions. Security control scanning frequency is usually higher than the reporting frequency of monitoring data. Using higher frequency scanning can detect high-load containers more promptly and pre-implement security policies (such as creating a snapshot before stopping the container to ensure complete recovery later).

[0075] In addition, when a user needs to create a new Linux container environment, the management service module 100 can recommend the target server with the most available computing and storage resources based on the monitoring data reported by each agent module 200. Users can also manually specify the target server according to their own wishes.

[0076] The Linux environment sharing system proposed in this application provides a user interface through a management service module and generates control commands corresponding to user operations. An agent module deployed on the target server receives these control commands and creates or modifies at least one Linux container environment on the target server based on these commands. Thus, through the command issuance and execution architecture between the management service module and the agent module, containerized Linux environments are created on demand for multiple users within the server resource pool. This solves the problems of container resource contention and server downtime caused by multiple users sharing the server in related technologies. It achieves both ensuring the elastic use of server resources by the container environment and automatically managing resources for high-load containers to prevent downtime.

[0077] Next, referring to the accompanying drawings, a Linux environment sharing method according to an embodiment of this application is described, which is applied to... Figure 1 The Linux environment sharing system of the example.

[0078] Figure 7 This is a flowchart of a Linux environment sharing method according to an embodiment of this application.

[0079] like Figure 7 As shown, this Linux environment sharing method includes the following steps: In step S701, the management service module provides a user interface and generates control commands corresponding to the user's operations.

[0080] In step S702, the agent module receives control commands and, based on the control commands, creates or modifies at least one Linux container environment on the target server.

[0081] The Linux environment sharing method proposed in this application uses the instruction issuance and execution architecture between the management service module and the agent module in the Linux environment sharing system to create containerized Linux environments for multiple users on demand in the server resource pool. This solves the problem of container resource contention and server downtime caused by multiple users sharing the server in related technologies. It achieves the goal of ensuring the elastic use of server resources in the container environment while automatically managing the resources of high-load containers to avoid downtime.

[0082] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0083] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0084] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A Linux environment sharing system, characterized in that, include: The management service module provides a user interface and generates control commands corresponding to user operations. An agent module is deployed on the target server. The agent module is communicatively connected to the management service module. The agent module is used to receive the control commands and, based on the control commands, create or modify at least one Linux container environment on the target server. There is at least one target server, and one agent module is deployed on each target server.

2. The system according to claim 1, characterized in that, The management service module includes: The interface interaction unit is used to provide the user operation interface and determine the type of operation performed by the user on the user operation interface. The operation type includes at least one of the following: creating an environment operation, starting an environment operation, stopping an environment operation, deleting an environment operation, or copying an environment operation. The instruction generation unit is used to generate the control instruction according to the operation type, wherein the control instruction is a script format instruction executable by the agent module.

3. The system according to claim 2, characterized in that, The management service module also includes: An instruction queue unit is used to store target control instructions that are to be sent to the target server from the control instructions; A queue management unit is used to create a corresponding instruction queue unit for each of the agent modules. The instruction distribution unit is used to respond to the instruction acquisition request of the current agent module, determine the target control instruction from the corresponding instruction queue unit, and send the target control instruction to the current agent module.

4. The system according to claim 3, characterized in that, The instruction distribution unit includes: A queue query subunit is used to respond to the instruction acquisition request and query whether there is a target control instruction to be executed in the corresponding instruction queue unit. A first return subunit is configured to return the target control instruction to be executed to the current agent module when the target control instruction to be executed exists in the corresponding instruction queue unit. A delayed waiting subunit is configured to wait for a preset time when the target control instruction to be executed is not present in the corresponding instruction queue unit, and to detect whether a new target control instruction has been written into the instruction queue unit corresponding to the current agent module. The second return subunit is used to return the new target control instruction to the current agent module when the instruction queue unit corresponding to the current agent module is written with the new target control instruction.

5. The system according to claim 1, characterized in that, The management service module also includes: A monitoring unit is used to receive the operating status of the target server reported by the proxy module; The control unit is used to suspend or terminate the Linux container environment with the highest resource consumption on the target server when the target server resources are determined to meet a preset stress state based on the running status, and to save a snapshot of the running status of the Linux container environment with the highest resource consumption.

6. The system according to claim 1, characterized in that, The proxy module includes: An instruction receiving unit is configured to send an instruction acquisition request to the management service module and receive the control instruction. An instruction execution unit is configured to execute the control instructions on the target server to create or modify at least one of the Linux container environments on the target server.

7. The system according to claim 6, characterized in that, The proxy module also includes: A status reporting unit is used to report the operating status of the target server to the management service module.

8. The system according to claim 7, characterized in that, The proxy module also includes: A startup command rewriting unit is used to rewrite the initial startup command of the selected container image to create or modify at least one of the Linux container environments based on the rewritten startup instructions.

9. The system according to claim 8, characterized in that, The proxy module also includes: A remote management unit is configured to respond to access commands issued by the management service module, and based on the access commands, initiate a temporary web terminal service on the target server, and set a random password for the temporary web terminal service to generate a remote management connection to the target server with a preset validity period.

10. A method for sharing a Linux environment, characterized in that, Applied to a Linux environment sharing system as described in any one of claims 1-9, wherein the method includes the following steps: The management service module provides a user interface and generates control commands corresponding to user operations. The agent module receives the control commands and, based on the control commands, creates or modifies at least one Linux container environment on the target server.