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

Method and system for establishing network connection of Docker container, and client side

A docker container and network connection technology, which is applied in the field of network connection of Docker containers and can solve problems such as inability to interact

Inactive Publication Date: 2016-09-28
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF2 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In other words, any Docker container in Docker cannot interact with the external network outside the Docker container
[0003] It can be seen from the above description that in the prior art, the Docker container cannot be connected to the external network outside the Docker container

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 establishing network connection of Docker container, and client side
  • Method and system for establishing network connection of Docker container, and client side
  • Method and system for establishing network connection of Docker container, and client side

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0052] Such as figure 1 As shown, the embodiment of the present invention provides a method for establishing a network connection of a Docker container, and the method may include the following steps:

[0053] S1: The Docker container applies for an IP from the server;

[0054] S2: The server assigns an available target IP to the client according to t...

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 method, a system and a client for establishing a network connection of a Docker container. The method includes: the Docker container applies for an IP from a server; Client; the client creates the virtual network card of the Docker container; the client assigns the target IP to the virtual network card; the client creates a network bridge; the client connects the virtual network card to the network bridge, and connect the network bridge to the network card of the external network to realize the network connection between the virtual network card and the network card of the external network. The invention provides a method, a system and a client for establishing a network connection of a Docker container, which can realize the connection between the Docker container and an external network other than the Docker container.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, a system and a client for establishing a network connection of a Docker container. Background technique [0002] Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish it to any popular Linux machine, and can also implement virtualization. The network bridge, host and none modes natively supported by Docker. When the Docker container is connected to the network, it can only realize the interaction inside the Docker container. In other words, any Docker container in Docker cannot interact with the external network outside the Docker container. [0003] It can be seen from the above description that in the prior art, the Docker container cannot be connected to an external network outside the Docker container. Contents of the invention [0004] Embodiment...

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): H04L12/46G06F9/455
CPCH04L12/46G06F9/45504H04L12/4625
Inventor 李珂潘峰王德奎刘安
Owner LANGCHAO ELECTRONIC INFORMATION IND 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