Docker uses the Linux bridge
docker0 by default. However, there are cases where Open vSwitch (OVS) might be required instead of a Linux bridge. A single Linux bridge can only handle 1024 ports – this limits the scalability of Docker as we can only create 1024 containers, each with a single network interface.
We will now install OVS on a single host, create two containers, and connect them to an OVS bridge.
Use this command to install OVS:
# sudo apt-get install openvswitch-switch
ovs-docker utility with the following:
# cd /usr/bin # wget https://raw.githubusercontent.com/openvswitch/ovs/master/utilities/ovs-docker # chmod a+rwx ovs-docker
The following diagram shows the single-host OVS: