Chapter 3. User-Defined Networks

In this chapter, we will cover the following recipes:

  • Viewing the Docker network configuration
  • Creating user-defined networks
  • Connecting containers to networks
  • Defining a user-defined bridge network
  • Creating a user-defined overlay network
  • Isolating networks

Introduction

Earlier versions of Docker relied on a mostly static network model, which worked relatively well for most container networking needs. However, if you wanted to do something different, you weren't left with many options. For instance, you could tell Docker to deploy containers to a different bridge, but there wasn't a strong integration point between Docker and that network. With the introduction of user-defined networking in Docker 1.9, the game has changed. ...

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.