The concept of container networking aims to standardize and optimize container data flows. Container networks create insulated zones to make it possible for multiple containers to communicate simultaneously and independently in an efficient manner.
What is container networking?
Container networking enables containers to communicate with other containers or host and share their resources, data and applications.There are two main options when an application is run in a container:
- The application can be run in the host network namespace: This is a normal network, and if you run a program on port X, it will run on port X on the computer.
- The application can be run in its own network namespace: In a program running in its own network namespace, other programs on other computers must be able to establish a network connection with this program.
In cases where multiple containers are involved, the second option is implemented and each container should now have its own IP. A container network has now been created and it must be managed.