Docker: Can't change language - cannot change locale

If you attempt to change locale of your image, you may run into issues with Alpine based images, which many of our containers are extended from (especially service containers and Node).

There is currently no support for changing locale on Alpine. Many users across Github/Stack Exchange are reporting similar issues, many on relation to Docker.

Example errors
`/bin/bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR.UTF-8)`

 

Solution

Users should use a Debian based image variant of the needed image or install needed software on top of a standard Ubuntu/Debian image.

 

Source:.
https://github.com/gliderlabs/docker-alpine/issues/144

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.