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

You can get the example redis config file from github. It just located at root path. Note that select the branch match your version.

Then you can custom the config file base on the example config file above. Then run the command docker run -v /path/to/your/custom/config/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis redis-server /usr/local/etc/redis/redis.conf.


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.


if the docker is running then you can use the following command to get all the details of docker location, images, containers etc.

docker info

Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): true File Descriptors: 40 Goroutines: 150

you can also use docker -v to get the version details