For example, I downloaded a mirror image of redis. I want to change the configuration of redis before starting the redis container. Where should I change it? Besides, where exactly did docker install redis? I can’t find the installation directory of redis in docker’s command line.
If the configuration is modified,
There are the following methods:
1. Read the readme of the redis mirror provider, and follow his way (generally change to ENV or something like that)
2. mount the redis configuration file by using a data volume
3. docker run starts an instance and goes in to modify it. After modification, docker commit changes the container into a mirror image.
The first is generally recommended.