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 with the Docker service offering no plugin. Rather, Flannel relies on you telling Docker to use the Flannel network to provision containers. In this chapter, we'll walk through how to install Flannel as well as walk through its various configuration options.
Docker Networking Cookbook
Docker Networking Cookbook
Overview of this book
Networking functionality in Docker has changed considerably since its first release, evolving to offer a rich set of built-in networking features, as well as an extensible plugin model allowing for a wide variety of networking functionality. This book explores Docker networking capabilities from end to end. Begin by examining the building blocks used by Docker to implement fundamental containing networking before learning how to consume built-in networking constructs as well as custom networks you create on your own. Next, explore common third-party networking plugins, including detailed information on how these plugins inter-operate with the Docker engine. Consider available options for securing container networks, as well as a process for troubleshooting container connectivity.
Finally, examine advanced Docker networking functions and their relevant use cases, tying together everything you need to succeed with your own projects.
Table of Contents (18 chapters)
Docker Networking Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Free Chapter
Linux Networking Constructs
Configuring and Monitoring Docker Networks
User-Defined Networks
Building Docker Networks
Container Linking and Docker DNS
Securing Container Networks
Working with Weave Net
Working with Flannel
Exploring Network Features
Leveraging IPv6
Troubleshooting Docker Networks
Index
Customer Reviews