Creating a Docker network for our application

To create isolation for our application, we will create a custom Docker network. This network was created using the bridge driver. Let's do that using the following command:

docker network create twitter

Good, now we can check the network list by typing the following command:

docker network list

The Twitter network should be on the list, like the following:

The last one is our Twitter network. Let's pull the Redis image from the Docker Hub. Take a look at the next section.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.