Skip to content

Instantly share code, notes, and snippets.

View KhaledSMQ's full-sized avatar
🎯
Focusing

Khaled Sameer KhaledSMQ

🎯
Focusing
View GitHub Profile
@KhaledSMQ
KhaledSMQ / redis-docker-for-mac.md
Created March 23, 2021 00:12 — forked from simonw/redis-docker-for-mac.md
How to run a redis server using Docker-for-Mac

How to run a redis server using Docker-for-Mac

This will work with other flavours of Docker as well.

Run the following command:

docker run --name my-redis -p 6379:6379 --restart always --detach redis

This will download and run redis, set to auto-restart when your machine starts and bound to port 6379 on your machine.