OK, now you know about the basics, right? In a nutshell: you want to enable the containers to see each other and be able to communicate with each other but don’t want to rely on non-scalable methods such as NAT. So, you may end up picking one of the available (FOSS) SDN solutions to address the problem.

First, Docker’s stance: https://docs.docker.com/articles/networking/ and in fact, Docker (the company) recently went a step further by acquiring the SDN start-up SocketPlane. I suppose we can expect more native support here, going forward, as a result of this acquisition.

In the following just a simple listing of SDN solutions relevant for Docker networking. Know of more? Please comment here or let me know via Twitter.

Open vSwitch

Open vSwitch is a multilayer virtual switch licensed under the open source Apache 2.0 license, designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, sFlow, IPFIX, RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to support distribution across multiple physical servers similar to VMware’s vNetwork distributed vswitch or Cisco’s Nexus 1000V.

Weave — the Docker network

Weave creates a virtual network that connects Docker containers deployed across multiple hosts. Applications use the network just as if the containers were all plugged into the same network switch, with no need to configure port mappings, links, etc. Services provided by application containers on the weave network can be made accessible to the outside world, regardless of where those containers are running. Similarly, existing internal systems can be exposed to application containers irrespective of their location.

Weave can traverse firewalls and operate in partially connected networks. Traffic can be encrypted, allowing hosts to be connected across an untrusted network. Weave works alongside Docker’s existing (single host) networking capabilities, so these can continue to be used by containers.

Pipework — Software-Defined Networking for Linux Containers

Pipework lets you connect together containers in arbitrarily complex scenarios. Pipework uses cgroups and namespace and works with “plain” LXC containers (created with lxc-start), and with the awesome Docker.

Flannel