码头工人ubuntu / bin / sh:1:locale-gen:找不到

我将下面的语言环境设置代码放入了我的dockerfile中,

FROM node:4-onbuild

# Set the locale

RUN locale-gen en_US.UTF-8

ENV LANG en_US.UTF-8

ENV LANGUAGE en_US:en

ENV LC_ALL en_US.UTF-8

但这给了我错误

/bin/sh: 1: locale-gen: not found

The command '/bin/sh -c locale-gen en_US.UTF-8' returned a non-zero code: 127

任何的想法?

回答:

谢谢您的评论,edwinksl。我更新了下面的dockerfile,解决了locale-gen错误:

FROM node:4-onbuild

# Set the locale

RUN apt-get clean && apt-get update && apt-get install -y locales

RUN locale-gen en_US.UTF-8

以上是 码头工人ubuntu / bin / sh:1:locale-gen:找不到 的全部内容, 来源链接: utcz.com/qa/433421.html

回到顶部