Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the location of redis.conf in official docker image?

I know that it is possible to pass your own config file but I'd rather edit the handful of values I care about in the default config. I'm having a hard time finding a default redis.conf anywhere though, do I just have to COPY my own into the container?

like image 214
Bill Brower Avatar asked May 24 '16 00:05

Bill Brower


People also ask

Where is redis conf file located?

The Redis configuration file is located at installdir/redis/etc/redis. conf.

Where is docker image config file?

The location of the mount point within the container defaults to /<config-name> in Linux containers. In Windows containers, configs are all mounted into C:\ProgramData\Docker\configs and symbolic links are created to the desired location, which defaults to C:\<config-name> .

How do I view redis conf?

You can obtain a list of all the supported configuration parameters by typing CONFIG GET * in an open redis-cli prompt. All the supported parameters have the same meaning of the equivalent configuration parameter used in the redis.

What is redis image in docker?

Aug 24 2022. Maintained in partnership with Redis, the Redis Docker Official Image (DOI) lets developers quickly and easily containerize a Redis instance. It streamlines the cross-platform deployment process — even letting you use Redis with edge devices if they support your workflows.


1 Answers

The default image from redis does not have a redis.conf.

Here is the link for the image on dockerhub. https://hub.docker.com/_/redis/

You will have to copy it to image or have it mapped on the host using a volume mapping.

like image 106
Shibashis Avatar answered Oct 11 '22 22:10

Shibashis