6. Introduction to Docker Networking
Overview
The goal of this chapter is to provide you with a concise overview of how container networking works, how it differs from networking at the level of the Docker host, and how containers can leverage Docker networking to provide direct network connectivity to other containerized services. By the end of this chapter, you will know how to deploy containers using networking configurations such as bridge
, overlay
, macvlan
, and host
. You will learn the benefits of different networking drivers and under which circumstances you should choose certain network drivers. Finally, we will look at containerized networking between hosts deployed in a Docker swarm cluster.