docker ubuntu / bin / sh:1:locale-gen:找不到 [英] docker ubuntu /bin/sh: 1: locale-gen: not found
本文介绍了docker ubuntu / bin / sh:1:locale-gen:找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将下面的区域设置代码放入我的dockerfile中,
I put the locale setting codes below into my 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,解决了区域设置错误:
Thanks for your comment, edwinksl. I updated my dockerfile below which solved the locale-gen error:
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
这篇关于docker ubuntu / bin / sh:1:locale-gen:找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文