To make your container able to communicate with the outside world, whether another server or another Docker container, Docker provides different ways of configuring networking. Let's begin with the network types which are available for our containers.
Networking
Docker network types
There are three different network types Docker delivers out of the box. To list them, execute the docker network ls command:
$ docker network ls
Docker will output the list of available networks containing the unique network identifier, its name, and a driver which powers it behind the scenes:
To have an overview of the differences between various network types, let's describe them now one by one.