Francisco Jiménez Cabrera
Francisco Jiménez Cabrera I have always been interested in computer and technology scene. Currently, I spend my days working as a web developer at Canonical.

How to run Redis locally with Docker

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

Get and run Redis

1
docker run -it -p 6379:6379 --rm --name my-redis redis

That’s it!

image

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

image

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