We will use both macvlan and ipvlan drivers and illustrate Container network connectivity in same host and across hosts.įollowing output shows the Docker experimental version running: $ docker -versionĭocker version 1.11.0-dev, build 6c2f438, experimental.Two Containers are in vlan70 network and two other Containers are in vlan80 network. There are four Containers in each host.This allows for Container communication across hosts. It is needed to enable promiscuous mode on the Virtualbox adapter.
Macvlan network is created on top of host-only network adapter in Virtualbox. To create experimental boot2docker image, please use the procedure here. The experimental Docker has support for macvlan and ipvlan. In this example, we will use Docker macvlan and ipvlan network plugins for Container communication across hosts. To illustrate macvlan and ipvlan concepts and usage, I have created the following example. Docker has added support for macvlan and ipvlan drivers and its currently in experimental mode as of Docker release 1.11. This is a continuation of my previous blog on macvlan and ipvlan Linux network drivers.