Docker network configuration (a)

EDITORIAL words

     Just beginning to learn Docker , when reading tutorials on at encountered do not understand, write ideas or thoughts on paper. To facilitate their understanding, knowledge consolidation. Such as help others, very good. If lead others knowledge, will be marked to the table thanks to bloggers, bloggers and respect the effort.


Docker understanding of network management mechanism

Docker network communication is the use of Linux bridge.

After Docker Docker service or daemon (deamon) starts, Docker service creates a virtual bridge interface on the host, called docker0 (ifconfig command can be found on the host). When starting a container with a docker mirror, docker service will use this virtual bridge interface docker0 assigned an IP subnet in the docker0 for the container. Docker0 virtual bridge between the container and the host network the network connection between the container or a connector master node.
When the container starts, the container itself creates a new virtual network interface and assign ip addresses within a docker0 subnet, IP address embedded in the network container to provide container to the host virtual bridge docker0 bridge of a channel. Docker autoconfiguration iptables rules to manage configuration information for each gateway container, the virtual bridge docker0 host communication.


The above is a simple understanding of the mechanism of the docker's own network, until docker depth study will complement the network about the docker or docker some records related ecosystem.




Published 10 original articles · won praise 14 · views 40000 +

Guess you like

Origin blog.csdn.net/cuierdan/article/details/72723960