Networking containers
Often, your application consists of multiple processes that communicate with each other (starting from relatively simple cases such as an application server talking to a database up to complex microservice architectures). When using containers to manage all these processes, you will typically have one container per process. In this section, we will take a look at how you can have multiple Docker containers communicate with each other over their network interfaces.
In order to enable container-to-container communication, Docker offers a network management feature. The command line allows you to create new virtual networks and then add containers to these virtual networks. Containers within one network can communicate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access