Learning How Containers Communicate
Explore how Docker containers connect and communicate through networks created by Docker Compose. Learn how service names enable containers to discover and interact with each other, facilitating integration of services such as Redis within your Rails application.
We'll cover the following...
How can containers talk to each other?
If two containers are isolated, independent processes, how are they able to talk to one another?
While it is true that the code and processes running in a container are sandboxed, that does not mean the container has no way to communicate with the outside world. If containers could not communicate, we would not be able to connect them together to create a powerful, connected system of services that together make up our application.
Networks list
The docker-compose up creates a new network for the app. By default, all containers for our app are connected to the ...