Can't configure locale in Docker image
问题 I'm trying to install a locale file in my Docker image, but for some reason it doesn't install correctly. These lines inside my Dockerfile do configure + install the locale files: # Install and configure locales RUN ["apt-get", "install", "-y", "locales"] RUN ["locale-gen", "nl_NL.UTF-8"] RUN ["dpkg-reconfigure", "locales"] RUN ["update-locale"] ENV LANG nl_NL.UTF-8 The image is created succesfully. When I run docker exec **ID** locale -a I still get the following error: locale: Cannot set LC