Postgres: 11-alpine on default run `locale` is missing

Created on 21 Sep 2018  路  4Comments  路  Source: docker-library/postgres

db_1  | performing post-bootstrap initialization ... sh: locale: not found
db_1  | 2018-09-21 08:09:09.513 UTC [28] WARNING:  no usable system locales were found
db_1  | ok
db_1  | syncing data to disk ...
FROM postgres:11-alpine
COPY ./sql/init.ql /docker-entrypoint-initdb.d/init.sql
RUN docker-entrypoint.sh


FROM postgres:11-alpine
COPY --from=0 /var/lib/postgresql/data /var/lib/postgresql/data
question

Most helpful comment

Its possible to add locales now as per this example.

All 4 comments

Alpine is based on musl which doesn't have locales.

Going to close as there's nothing we could change in the image to remedy this

https://github.com/docker-library/docs/tree/master/postgres#postgresversion-alpine

The main caveat to note is that it does use musl libc instead of glibc and friends, so certain software might run into issues depending on the depth of their libc requirements.

Its possible to add locales now as per this example.

This is my Postgres-Alpine locale:

Captura de tela de 2020-05-17 22-13-04

This is my Postgres db settings:

Captura de tela de 2020-05-17 22-14-35

Why my monetary values aren't in pt_BR format?

Captura de tela de 2020-05-17 22-16-36

The amounts should be as: R$ 100,00

What remains to be done for this to work?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndriiOmelianenko picture AndriiOmelianenko  路  4Comments

note89 picture note89  路  3Comments

rap2hpoutre picture rap2hpoutre  路  3Comments

bsctl picture bsctl  路  4Comments

jiffingomez picture jiffingomez  路  4Comments