When build image with redis 6.2.*, the startup log shows:
Running without TLS mode
ACL_MODE is not true, skipping ACL file modification
Starting redis service in cluster mode.....
*** FATAL CONFIG FILE ERROR (Redis 6.2.12) ***
Reading the configuration file, at line 25
>>> 'cluster-announce-hostname "new-redis-cluster111-leader-0"'
Bad directive or wrong number of arguments
So we should remove the param setting when REDIS_MAJOR_VERSION settting to v7
see: https://github.com/redis/redis/blob/7.0/redis.conf
When build image with redis 6.2.*, the startup log shows:
So we should remove the param setting when
REDIS_MAJOR_VERSION
settting tov7