Docker Debian locales installation


You want to install some default locales in a Docker image, and the suggestion is to use locale-gen to do so, but it does not work as expected.


In order to be able to use the locale-gen and install the locales you need you will have to uncomment the ones needed from /etc/locale.gen first and then use the locale-gen. Example below: