Skip to content

Commit 45fc15c

Browse files
authored
Merge pull request #1778 from infosiftr/postgres-alpine
Add note about Alpine locales
2 parents 4757b75 + cfcef2d commit 45fc15c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

postgres/content.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ There are many ways to set PostgreSQL server configuration. For information on w
169169

170170
## Locale Customization
171171

172-
You can extend the image with a simple `Dockerfile` to set a different locale. The following example will set the default locale to `de_DE.utf8`:
172+
You can extend the Debian-based images with a simple `Dockerfile` to set a different locale. The following example will set the default locale to `de_DE.utf8`:
173173

174174
```dockerfile
175175
FROM %%IMAGE%%:9.4
@@ -179,6 +179,8 @@ ENV LANG de_DE.utf8
179179

180180
Since database initialization only happens on container startup, this allows us to set the language before it is created.
181181

182+
Also of note, Alpine-based variants do *not* support locales; see ["Character sets and locale" in the musl documentation](https://wiki.musl-libc.org/functional-differences-from-glibc.html#Character-sets-and-locale) for more details.
183+
182184
## Additional Extensions
183185

184186
When using the default (Debian-based) variants, installing additional extensions (such as PostGIS) should be as simple as installing the relevant packages (see [github.com/postgis/docker-postgis](https://github.com/postgis/docker-postgis/blob/4eb614133d6aa87bfc5c952d24b7eb1f499e5c7c/12-3.0/Dockerfile) for a concrete example).

0 commit comments

Comments
 (0)