Docker - Encoding (Locale)

Card Puncher Data Processing

About

In docker linux, in order to set your default encoding, you need to set your locale via environment variable in your dockerfile

Example

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







Share this page:
Follow us:
Task Runner