Before we finish off this chapter, 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 and volumes
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...