Created
January 19, 2014 23:44
-
-
Save garthk/8512576 to your computer and use it in GitHub Desktop.
Avoiding Java certificate problems with `stackbrew/ubuntu` under Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM stackbrew/ubuntu:precise | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When installing
openjdk-6-jre
or similar under the minimal Docker imagestackbrew/ubuntu:precise
, you'll see errors installing certificates with non-ASCII characters in their names:… and so on, with two other failures at the time of writing.
The root cause is that the image lacks a useful locale setting. Running
locale-gen
and settingLANG
fixes the problem.