Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2022-07-08
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] In view of the above-mentioned docker container in the prior art to establish communication between host machines through ssh, the deployment process is complicated, difficult to locate, there are potential safety hazards and low efficiency defects, the present invention provides a communication method for calling host machine commands for docker containers and system to solve the above technical problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method and system for calling host command for docker container
  • Communication method and system for calling host command for docker container
  • Communication method and system for calling host command for docker container

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a communication method and system for invoking a host machine command for a docker container. The method includes the following steps: S1. Deploying and monitoring a Unix socket file on the host machine; S2. Mounting and monitoring the Unix socket in the docker container word file; S3. Set the docker container to call the host command through the Unix socket file; the system includes: a host deployment module, a docker container deployment module and a communication setting module. The communication method and system for invoking host machine commands for docker containers provided by the present invention, remote execution command services based on Unix socket technology + command line agent, Unix socket communication, higher efficiency, safer, mainstream programming language Both support Unix socket operations, the client does not need to introduce complex third-party dependencies, and the development is more convenient.

Description

technical field [0001] The invention belongs to the technical field of docker container operation, and in particular relates to a communication method and system for invoking host machine commands for docker containers. Background technique [0002] Docker: It is an open source application container engine that can package application software and dependent packages into a container to run, while isolating the application from the operating system. [0003] Host: The operating system that runs the docker process, usually a linux system. [0004] Image: Provides the programs, libraries, resources, configuration and other files required by the container runtime, and includes some configuration parameters prepared for the runtime. [0005] Container: The entity of the image runtime is a miniature version of the operating system, usually only one process runs, and containers, containers and the operating system are isolated from each other. [0006] Secure Shell Protocol: Name...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54G06F9/455
CPCG06F9/544G06F9/45558
Inventor 张海军
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD