Docker networking and volumes
Next up, we are going to take a look at the basics of Docker networking and Docker volumes using the default drivers. Let's take a look at networking first.
Docker networking
So far, we have been launching our containers on a single flat shared network. Although we have not talked about it yet, this means the containers we have been launching would have been able to communicate with each other without having to use any of the host networking.
Rather than going into detail now, let's work through an example. We are going to be running a two-container application; the first container will be running Redis, and the second, our application, which uses the Redis container to store a system state.
Important note
Redis is an in-memory data structure store that can be used as a database, cache, or message broker. It supports different levels of on-disk persistence.
Before we launch our application, let's download the container...