How to run Redis locally with Docker
In this post, I want to share just one command to run Redis locally. That’s it, and it’ll be quick and easy.
- Docker (https://docs.docker.com/get-docker/)
Get and run Redis
1 docker run -it -p 6379:6379 --rm --name my-redis redis
Note: If you want to run something more customized, I recommend looking into the Redis documentation.
I didn’t have the opportunity to work with Redis before, so when I looked at the CLI client, the commands were completely new to me. If you are looking for an easy way to view the data. I recommend QRedis.
1 sudo pip3 install qredis
1 qredis -p 6379
Ah! Much better.
Enjoyed this article? Support my work!
If you found this content helpful, consider buying me a coffee to show your appreciation.Buy me a coffee