Docker - Encoding (Locale)
Table of Contents
1 - About
In docker linux, in order to set your default encoding, you need to set your locale via environment variable in your dockerfile
2 - Articles Related
3 - Example
3.1 - Ubuntu
- Check/ List the locales
locale -a
C
C.UTF-8
POSIX
- If there is no locale, install them
apt-get install -y locales
# if you really want to have all locales :)
# apt-get install -y locales-all
- Then in docker file
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8