dockerfiles
dockerfiles copied to clipboard
no config file in redis
The redis docker container is supposed to read (and overwrite) settings available in /etc/redis.conf
Problem is that, even if one make this file available - by mounting this file with docker-compose.yml, for example - this file is never read by the server as per cli command: redis-cli -p 6379 info server
:
root@37eb2bafea95/data # redis-cli -p 6379 info server
# Server
redis_version:7.0.12
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:233784bdd5633a9a
redis_mode:standalone
os:Linux 6.1.0-17-amd64 x86_64
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:13.1.1
process_id:1
process_supervised:no
run_id:672036a237da8a046d954d96d3266efb89b0a98a
tcp_port:6379
server_time_usec:1707600442740818
uptime_in_seconds:233
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:13101626
executable:/data/redis-server
config_file:
io_threads_active:0
Note the empty config_file
.
Even if we replace the default file at /usr/share/defaults/etc/redis.conf
with new options, the server does NOT honor the settings.