Chapter 8. Working with Flannel

In this chapter, we will cover the following recipes:

  • Installing and configuring Flannel
  • Integrating Flannel with Docker
  • Using the VXLAN backend
  • Using the host gateway backend
  • Specifying Flannel options

Introduction

Flannel is a third-party network solution for Docker that was developed by the team at CoreOS. Flannel was one of the earlier projects that aimed to give each container a uniquely routable IP address. This removes the requirement for inter-host container-to-container communication to use published ports. Much like some of the other solutions we've reviewed, Flannel uses a key-value store to keep track of allocations and various other configuration settings. However, unlike Weave, Flannel offers no direct integration ...

Get Docker Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.