Install Redis using Docker

Redis is an open-source that allows us to store data in memory. We can use Redis for database, caching, or message broker. In this tutorial, I will show you how to install Redis using Docker!

First, you can go to the official Redis Docker Image page at to check the latest version of the Redis Image. Then use the docker run command to install Redis as follows:

Here, I am using the latest version of Redis, I also expose Redis’ default running port of 6379 to the outside.


At this point, Redis is already started.

You can access the container:

and use the Redis CLI to check the results:

Add Comment