Skip to content

Instantly share code, notes, and snippets.

@vinnyfs89

vinnyfs89/Readme.md

Last active Sep 20, 2016
Embed
What would you like to do?
Fix docker debian image locale error !

Just run the commands below and have fun!

$ apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
$ sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen &&     echo 'LANG="en_US.UTF-8"'>/etc/default/locale &&     dpkg-reconfigure --frontend=noninteractive locales &&     update-locale LANG=en_US.UTF-8
$ export LANG=en_US.UTF-8

More details here: http://stackoverflow.com/questions/28405902/how-to-set-the-locale-inside-a-docker-container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.