Quick Recap
The true power of using containers for our apps is not running a process in an individual container (though that’s useful), but rather how we’re able to wire containers together so they can talk to each other.
In this chapter, we’ve seen how we can add services to our application, running in separate containers. More importantly, we’ve seen how Docker’s built-in networking is used to let the services talk to each other.
Let’s review the highlights:
-
We started a Redis server in a container, using docker run. We covered two new options: --name for giving containers a human-friendly name, and -d for running a container in detached mode.
-
We added a separate service in Compose for running the Redis server.
-
We verified that the Redis server ...
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