Docker -- Cross-host networking

Click for: original source

When Docker is installed, three networks are automatically created on the host: bridge, host and none . You can use the command docker network ls to check. By Tony Li Xu.

libnetwork is a docker container network library. The core content is the Container Network Model (CNM) defined by it. This model abstracts the container network and consists of these components: sandbox, endpoint, network.

These network schemes solve the problem of container communication within a single Docker host. Let’s talk about scenarios for communications between containers across hosts in this article.

Container Network Model example

Source: https://blog.devgenius.io/docker-cross-host-networking-8761e3ddebc9

Cross-host networking scenarios include:

  • Docker native overlay and macvlan
  • Third-party solutions: commonly used ones include flannel and calico

The docker network is a very active technical field, and new solutions are constantly being developed, so it is a very important question to ask: “How do so many solutions integrate with docker?” The answer is: libnetwork and CNM. Interesting read!

[Read More]

Tags app-development docker containers learning