Configuration method for external IP of Docker cluster container

A container and cluster technology, applied in the direction of electrical components, transmission systems, etc., can solve problems such as insufficient host ports, achieve the effect of highlighting substantive features and significant progress

Inactive Publication Date: 2017-06-20
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Docker clusters generally use the Overlay mode that supports multi-host communication when creating containers. External access to container services must use port mapping, which has a fatal flaw of insufficient host ports.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] In order to clearly illustrate the technical features of the solution, the solution will be described below through a specific implementation manner.

[0014] A method for configuring the external IP of a Docker cluster container in this solution includes the following steps:

[0015] 1) The host builds a Docker cluster environment, configures the basic information of the external network, creates a data table and saves the information in the background database, and at the same time, the Docker host selects the first external IP to create a route, and the database records the external IP; the basic information includes classless inter-domain Routing selects CIDR segments, gateways, and available IP segments.

[0016] 2) When creating a container in a Docker environment, you need to apply for an external IP, and the background database retrieves the data table to allocate an available IP; send the IP and routing information to the host where the container is located to ...

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 invention provides a configuration method for an external IP of a Docker cluster container, and the method can ensure that services provided by the Docker cluster container can be accessed flexibly in the external. A Docker cluster environment is initialized, and the external IP is configured and sent to a background database for storage; and a host establishes a route. After establishment of the container, a Docker cluster is distributed with the external IP which can be accessed by the external, and a background database records a mapping relation. The Docker cluster destroys the container and deletes Linux Iptables rules, and the background database deletes records and recovers the external IP.

Description

technical field [0001] What the present invention relates to is a kind of technology of computer software application, especially a kind of method based on Linux Iptables rule and Mariadb database configuration Docker cluster container external IP, guarantees the service that can visit Docker cluster container flexibly outside. Background technique [0002] In the existing technology, the well-known technology is that Docker is an open source engine, which can easily create a lightweight, portable, and self-sufficient container for any application. The containers that developers compile and test can be batched in Deployed in a production environment, including virtual machines, OpenStack clusters, and other basic application platforms. Docker clusters generally use the Overlay mode that supports multi-host communication when creating containers. External access to container services must use port mapping, which has a fatal flaw of insufficient host ports. Therefore, we need...

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 Applications(China)
IPC IPC(8): H04L29/12
CPCH04L61/2514H04L61/255H04L61/5061H04L61/5007
Inventor 李珂潘峰王德奎刘安
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products