Redis

Redis is an in-memory data structure project

https://redis.io/

Install via docker

$ docker pull redis

Run via docker

Make sure the port Redis uses to listen for connections (by default 6379 and additionally 16379 if you run Redis in cluster mode, plus 26379 for Sentinel) is firewalled, so that it is not possible to contact Redis from the outside world.

ports requirements

  • for single mode - [6379]

  • for cluster mode - [6379, 16379]

  • for sentinel mode - [6379, 16379, 26379]

run commands

single mode with bridge network (mynet)

$ docker run -p 6379:6379 \
--net=mynet redis

Last updated

Was this helpful?