sles12 docker

时间:2018-07-09 10:37:49

标签: linux docker sles

我正在尝试将组件设置为Docker。组件检查语言环境是否正确设置,否则组件安装失败。在我的情况下,在Sles 12上构建docker时语言环境低于错误

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

我尝试在Dockerfile中设置LANG环境变量,但仍然无济于事 我该怎么做才能解决此问题?

1 个答案:

答案 0 :(得分:0)

默认情况下,如下面链接中所述,并非所有区域设置都可用于减小图像的大小。

您可以使用安装所有语言环境

zypper -n in -f glibc-locale

https://github.com/openSUSE/docker-containers-build/issues/12