Supercharge Your Innovation With Domain-Expert AI Agents!

Controlling method and apparatus for container accessing

A technology of a control device and a control method, which is applied in the communication field, can solve problems such as the inability of the client to communicate and reduce the reliability of accessing Docker containers, and achieve the effect of ensuring reliability

Active Publication Date: 2016-11-16
CHINA UNITED NETWORK COMM GRP CO LTD
View PDF9 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when Docker container 2 is migrated from Docker server 2 to other Docker servers, the client will not be able to communicate with Docker container 2, reducing the reliability of accessing Docker containers

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
  • Controlling method and apparatus for container accessing
  • Controlling method and apparatus for container accessing
  • Controlling method and apparatus for container accessing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] figure 1 A flow chart of a container access control method provided by an embodiment of the present invention; figure 2 A network structure diagram applicable to the container access control method provided by the embodiment of the present invention. The embodiment of the present invention aims at that after the Docker container 2 is migrated from the Docker server 2 to other Docker servers, the client will not be able to communicate with the Docker container 2, which reduces the efficiency of accessing the Docker container, and provides a control method for container access. The specific steps of the method as follows:

[0021] Step S101, receiving a port application message sent by the Docker container, where the port application message includes the public network address of the Docker container;

[0022] like figure 2 As shown, the Docker server 21 is installed with a Docker container C1, and the Docker server 22 is installed with a Docker container C2, and a r...

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 embodiment of the present invention provides a controlling method and apparatus for container accessing. The method comprises: receiving an access request sent by a client, wherein the access request comprises a destination port number; acquiring a mapped port number according to the destination port number, wherein the destination port number is corresponding to the mapped port number; acquiring a public network address of a Docker container corresponding to the mapped port number according to the mapped port number; and sending the access request to the Docker container according to the public network address of the Docker container. According to the embodiment of the invention, the client sends an access request to the Docker container through a repeater, and the repeater sends the access request to the Docker container, so that even if the Docker container is migrated from a source server to another server, the client can firstly send the access request to be sent to the Docker container to the repeater, then the repeater can forward the access request to the Docker container, and reliability of access of the client to the Docker container is guaranteed.

Description

technical field [0001] Embodiments of the present invention relate to the field of communication technologies, and in particular, to a container access control method and device. Background technique [0002] Docker is an open source application container engine. After installing Docker on a physical host, multiple containers can be hosted on the basis of Docker. Multiple containers are isolated from each other. Multiple containers share the operating system of the physical host, and each container can be placed and execute different applications. [0003] The physical host on which the Docker container is installed is called a Docker server. For example, Docker container 1 is in Docker server 1, and Docker container 2 is in Docker server 2. When Docker container 1 needs to access Docker container 2 as a client, Docker container 1 is created Request message, the source IP address of the request message is the IP address of Docker server 1, and the destination IP address is ...

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
IPC IPC(8): H04L29/06
CPCH04L63/101
Inventor 田新雪马书惠
Owner CHINA UNITED NETWORK COMM GRP CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More