Introduction to Docker Networks
Explore the fundamentals of Docker networking, including common network terms, default Docker networks, and container communication methods. Understand how to connect an app container with a database container using Docker networks to prepare for troubleshooting and advanced container setups.
We'll cover the following...
In the fundamentals section, we discussed that we will add a database to the app in the coming section. We will add the database as a container and our app will connect to the database using the Docker network.
So, it is important to know a little bit about the Docker network so that you can troubleshoot any problem you face in future.
Network fundamentals
The network is nothing but an area that allows somebody to reach others with defined permissions and protocols.
We will not go deep into networking, but just ...