Communication method and system for calling host command for docker container
A communication method and host machine technology, applied in inter-program communication, instruments, multi-program devices, etc., can solve the problems of potential safety hazards, complicated deployment process, and difficult positioning, so as to avoid potential safety hazards, simplify the deployment process, and develop convenient effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0073] like figure 1 As shown, the present invention provides a communication method for invoking a host machine command for a docker container, comprising the following steps:
[0074] S1. Deploy and monitor Unix socket files on the host;
[0075] S2. Mount and listen to the Unix socket file in the docker container;
[0076] S3. Set up the docker container to call host commands through a Unix socket file.
Embodiment 2
[0078] like figure 2 and Figure 4 As shown, the present invention provides a communication method for invoking a host machine command for a docker container, comprising the following steps:
[0079] S1. Deploy and monitor the Unix socket file on the host; the specific steps are as follows:
[0080] S11. Deploy the Unix socket file on the host;
[0081] S12. Deploy the command line agent program on the host;
[0082] S13. Set the command line agent to listen to the Unix socket file;
[0083] S2. Mount and monitor the Unix socket file in the docker container; the specific steps are as follows:
[0084] S21. Mount the Unix socket file as a volume in the docker container that applies the host command;
[0085] S22. Set the application software in the docker container to listen to the Unix socket file;
[0086] S3. Set the docker container to call the host command through the Unix socket file; the specific steps are as follows:
[0087] S31. Set the application software in...
Embodiment 3
[0102] like image 3 As shown, the present invention provides a communication system for invoking host machine commands for docker containers, including:
[0103] The host deployment module 1 is used to deploy and monitor the Unix socket file on the host; the host deployment module 1 includes:
[0104] Unix socket file deployment unit 1.1, used to deploy Unix socket files on the host;
[0105] The command line agent program deployment unit 1.2 is used to deploy the command line agent program on the host;
[0106] The monitoring setting unit 1.3 is used to set the command line agent to monitor the Unix socket file;
[0107] The docker container deployment module 2 is used to mount and monitor Unix socket files in the docker container; the docker container deployment module 2 includes:
[0108] The Unix socket file mounting unit 2.1 is used to mount the Unix socket file as a volume in the docker container of the application host command;
[0109] The second monitoring settin...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


