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.
Requirements
- Docker (https://docs.docker.com/get-docker/)
Get and run Redis
1
docker run -it -p 6379:6379 --rm --name my-redis redis
That’s it!
Note: If you want to run something more customized, I recommend looking into the Redis documentation.
Redis client
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.
Installation
1
sudo pip3 install qredis
Connecting
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