New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing locale #415
Comments
Issue looked resolved in If issue is still present then I'll re-open. |
I get the same issue with this Dockerfile:
The localedef command documented above fixes it. |
Doing
(Which doesn't mention anything about the size duplication of having essentially the same packages re-installed in a later layer.) |
Hello, This problem seems to be present on image 9.6 running in Kubernetes.
Did you fixed the 9.6 image ? Best regards |
I experience the exact same issue on a fresh pull of the official image. This also means, the created docker container becomes useless at this point, as it always crashes immediately. Changing back the config file to its original state does not help. |
I have this issue on alpinelinux and there's no localedef command that I can find. is there another way? |
See https://github.com/docker-library/docs/blob/master/postgres/README.md#locale-customization Alpine-based variants starting with Postgres 15 support ICU locales |
oh yes you're right. I didn't need this for pg15. thank you |
Seems like the latest 10.2 image (maybe earlier?) does not have the locale set correctly:
When I run locale commands in the container:
To fix it I did this:
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
Hope it helps.
The text was updated successfully, but these errors were encountered: