Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for allocating IP addresses to containers

An IP address and container technology, applied in the computer field, can solve the problems of IP address change, unable to share the same subnet, unable to realize the binding of container and IP address, etc., to simplify the method and improve the flexibility.

Active Publication Date: 2018-01-12
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF11 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this method, containers on the same physical machine share the same subnet, and containers on different physical machines cannot share the same subnet
[0005] None of the above methods can realize the binding between the container and the IP address. When the container is restarted on the same physical machine or migrated to another physical machine, the IP address will change.
In this way, services that listen to fixed IP addresses will not work properly

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
  • Method and system for allocating IP addresses to containers
  • Method and system for allocating IP addresses to containers
  • Method and system for allocating IP addresses to containers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0039] The technical terms involved in the embodiments of the present invention are explained as follows:

[0040] Kubernetes: Kubernetes is Google's open-source container cluster management system, which provides functions such as application deployment, maintenance, and expansion mechanisms. Using Kubernetes can easily manage containerized applications running acro...

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 discloses a method and system for allocating IP addresses to containers and relates to the technical field of computers. According to one specific embodiment of the invention, the methodcomprises the following steps: establishing a one-to-one corresponding relation between a part of IP addresses in a total address pool and corresponding containers according to a first allocation requirement; when a request for allocating an IP address is received, judging whether a container whose IP address is to be allocated has a binding relation with a certain IP address; if so, allocatingthe IP address bound with the container whose IP address is to be allocated to the container; and otherwise, allocating an unbound IP address in the total address pool to the container whose IP address is to be allocated. According to the embodiment of the invention, the IP address and the container can be bound such that it can be guaranteed that the IP address is not changed when the container is restarted or migrated, and it is guaranteed that the service is not interrupted.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and system for allocating container IP addresses. Background technique [0002] A container is a series of processes isolated from the rest of the system, running from a template image that provides all the files needed to support the process. Among them, Docker is an open source application container engine that allows developers to package their applications and dependent packages into a portable container, and then publish it to any running Linux machine, and can also realize virtualization. Containers use a sandbox mechanism completely, and there will be no interfaces between them. Nowadays, the application of Docker is becoming more and more extensive, whether it is from the code activity on github, or Redhat's support for Docker integrated in RHEL6.5, and even Google's omput Engine also supports Docker to run on it. Kubernetes is Google's open source co...

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
Inventor 沈娟刘海锋
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products