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 https://hub.docker.com/_/redis to check the latest version of the Redis Image. Then use the docker run command to install Redis as follows:
1 |
docker run -p 6379:6379 -d redis |
Here, I am using the latest version of Redis, I also expose Redis’ default running port of 6379 to the outside.
Result:
At this point, Redis is already started.
1 |
docker ps -a |
You can access the container:
1 |
docker exec -it 55c52c1e57a9 sh |
and use the Redis CLI to check the results: