Is there a way to turn on clustered mode?
craigpastro opened this issue · 3 comments
craigpastro commented
I want to use a Redis test container with clustered mode on to test my service, but I haven't found any nice way to do this. Do you know of any?
Unlike the redis/redis-stack image, this image does not seem to use the REDIS_ARGS environment variable. I suppose if it did, I could do something like:
docker run --rm --name redis -e REDIS_ARGS="--cluster-enabled yes" redis
Anyway, I appreciate any help. Thank you!
yosifkit commented
Args to redis-server can just be passed in on the docker command line (anything after the image):
$ docker run --rm --name redis redis --cluster-enabled yescraigpastro commented
Thanks @yosifkit! That's very helpful to know.