docker-library/postgres

no usable system locales were found - Alpine postgres

bharanitharanm opened this issue · 1 comments

Getting this error during postgres startup,

sh: locale: not found
2025-01-30 10:33:25.556 UTC [36] WARNING:  no usable system locales were found

I dont see any issues beacuse of this. Databases are created with en-US ICU locale,

Image

Need to understand if there is anything needs to be configure to avoid this error. Also are there any impact because of this error?

Currently I'm using, postgres:16.6-alpine3.20

I tried setting this environment variable, still it is not resolved,

POSTGRES_INITDB_ARGS: --locale-provider=icu --icu-locale=en-US