For users that are looking for additional features, OpenVSwitch (OVS) is becoming a popular replacement for the native Linux bridge. OVS offers a dramatic enhancement to the Linux bridge at the cost of a slightly higher level of complexity. For instance, an OVS bridge cannot be managed directly by the iproute2
toolset we have been using up to this point and requires its own command-line management tools. However, if you're looking for features that don't exist on the Linux bridge, OVS is likely your best choice. Docker cannot natively manage an OVS bridge, so using one requires that you build the connectivity between the bridge and the container manually. That is, we can't just tell the Docker service to use an OVS bridge rather than the default docker0
bridge. In this recipe, we'll show how to install, configure, and connect containers directly to an OVS bridge in place of the standard docker0
bridge.
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