[SOLVED] Redis in LXC Container - best practice/container image available?

Apollon77

Well-Known Member
Sep 24, 2018
153
13
58
48
Hi All,

I plan to run a Redis Master/Slave configuration and want to use Sentinel to get a kind of HA setup. SO I thought how to best have Redis run.

And indeed I could spin up multiple VMs for that ... or ... start using LXC containers.

Is anyone here also running a Redis in LXC container? Are there COntainer Image files available for that? I google but was not able to find anything.
I also had a look at the Turnkey Linux Containers and yes there is a Redis one, but with a very old version (3.2.8 vs 5.x) and also with a lot of additional stuff I should not need.

Thank you for sharing your solutions

Ingo
 
You can just use a regular OS container template (Debian, Ubuntu, Arch Linux, etc...) from our repository and then install redis yourself (e.g. ssh into the container and apt install/pacman -S/... redis).
 
I did exactly that testwise yesterday ... looks good in general. I still experiment around a bit