redis/docker-library-redis

7.0.5 FATAL CONFIG FILE ERROR with default redis.conf

Colonizator1 opened this issue · 3 comments

docker-compose.yml
version: "3.8"

services:
    redis-session:
        build: .
        container_name: redis-session
        restart: always

Dockerfile

FROM redis
COPY redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]

redis.conf was taken from the official repo https://github.com/redis/redis/blob/unstable/redis.conf

the result after "docker-compose up -d"

*** FATAL CONFIG FILE ERROR (Redis 7.0.5) ***
Reading the configuration file, at line 415
>>> 'locale-collate ""'
Bad directive or wrong number of arguments

I commented the option locale-collate, but seems that it's not the right way :)

Looks like it needs the locale value in those double quotes. I didn't find anything locale related in a search through redis' docs so I'm not sure if it's different in its support for locales or formatting than other databases. But using one of these should work fine https://database.guide/full-list-of-locales-in-mysql/

If not then here's a full complete list of locales and their codes https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_language_information.html

You may want to grab the example from the 7.0 branch: https://github.com/redis/redis/blob/7.0/redis.conf. It doesn't seem to have a locale-collate and as far as I can tell, that key doesn't exist yet in any release version of redis.

Indeed, it looks like locale-collate was added to that example configuration in redis/redis@ca6aead. 👀