If launching Redis using the sample provided redis.conf one receives the following error message:

*** FATAL CONFIG FILE ERROR (Redis 6.2.6) *** Reading the configuration file, at line 614

'repl-diskless-sync-max-replicas 0' Bad directive or wrong number of arguments

To reproduce Obtain the provided redis.conf: https://github.com/redis/redis/blob/unstable/redis.conf

Launch Redis with the following in your docker-compose.yml: redis: image: redis:alpine command: ["redis-server", "/usr/local/etc/redis/redis.conf"] volumes: - $PWD/redis-data:/var/lib/redis - $PWD/redis.conf:/usr/local/etc/redis/redis.conf

Expected behavior

Redis should launch and use the redis.conf and not crash with errors

Additional information

The line in redis.conf with the issue referenced in the error message reads as follows in the redis.conf: repl-diskless-sync-max-replicas 0

Comment From: enjoy-binbin

if you use 6.2.6, you may should use https://github.com/redis/redis/blob/6.2.6/redis.conf as the sample conf There are some new config items in unstable branch, that are not used in 6.2.6

Comment From: oranagra

@yayoi-k any reason you decided to take redis.conf from github rather than maybe use the one bundled with redis? maybe some documentation should be improved..

Comment From: infrachris

Ah, my mistake, thank you