Based on:

Networking overview

Docker Networking Hands-on Lab

Networking overview

One of the reasons Docker containers and services are so powerful is that you can connect them together or connect them to non-Docker workloads. Docker containers and services can be made aware of whether they are deployed on Docker or whether their peers are also Docker workloads. Whether your Docker hosts run Linux, Windows, or a mix of the two, you can use Docker to manage them in a platform-agnostic way.

This section introduces some basic Docker networking concepts and prepares you to design and deploy your applications to take full advantage of these capabilities.

Network drivers

Docker’s networking subsystem is pluggable, using drivers. Several drivers exist by default, and provide core networking functionality. The most relevant are:

And also:

Networking with standalone containers

Source:

Networking with standalone containers

This section includes two different parts:

  1. Use the default bridge network demonstrates how to use the default bridge network that Docker sets up for you automatically.

  2. Use user-defined bridge networks shows how to create and use your own custom bridge networks to connect containers running on the same Docker host. This is recommended for standalone containers running in production.


The default bridge network