Skip to content

Instantly share code, notes, and snippets.

@oviniciusfeitosa
Last active September 20, 2016 19:38
Show Gist options
  • Save oviniciusfeitosa/a3cf7e3a342ce8625e5d763ddc145720 to your computer and use it in GitHub Desktop.
Save oviniciusfeitosa/a3cf7e3a342ce8625e5d763ddc145720 to your computer and use it in GitHub Desktop.
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