解决方案:

# set default language environment
RUN locale-gen en_US.UTF- \
&& dpkg-reconfigure locales
ENV LC_ALL=en_US.UTF-
ENV LANG=en_US.UTF-
ENV LANGUAGE=en_US.UTF-8 OR:
sudo locale-gen en_US.UTF-8

sudo dpkg-reconfigure locales
vi /etc/default/locale
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
重新登录服务器,warning 警告不再出现,问题解决
 

 

参考资料:

1、bash: warning: setlocale: LC_ALL: cannot change locale (en_US):

http://blog.163.com/fl_xiang/blog/static/194634512201291231429799/

https://www.xdty.org/912

https://blogs.oracle.com/sakshijain/entry/the_problem_of_setting_locale

http://www.cnblogs.com/ifantastic/p/4565822.html

http://www.tuicool.com/articles/qYrIvm/

2、How to source /etc/profile and save it in docker?

http://stackoverflow.com/questions/31216780/how-to-source-etc-profile-and-save-it-in-docker

3、sudo命令报错

http://www.cnblogs.com/wangkongming/p/4451629.html

最新文章

  1. jquery 展开折叠效果
  2. IOS内存管理「4」- ARC 和垃圾回收机制的基本概念
  3. 最好的10本适用于初学者阅读的javaScript和jQuery书籍
  4. 《Introduction to Algorithm》-chaper33-计算几何学
  5. C# 跨线程调用问题
  6. [jQuery]无法获取隐藏元素(display:none)宽度(width)和高度(height)的新解决方案
  7. 微信网页授权java实现
  8. @ModelAttribute--SpringMVC 注解系列文章(二)
  9. bzoj 3509: [CodeChef] COUNTARI] [分块 生成函数]
  10. Java中函数的递归调用
  11. Emmagee--APP性能测试工具的基本使用
  12. SpringMVC+Spring+Mybatis整合
  13. Polly 熔断策略
  14. Windows与Linux的命令行命令对比
  15. 修改注册表.exe的文件目录
  16. Elasticsearch从入门到精通之Elasticsearch基本概念
  17. windows defender和windows firewall
  18. 用Python写单向链表和双向链表
  19. November 26th 2016 Week 48th Saturday
  20. WCF REST 工作总结

热门文章

  1. Codeforces 722C(并查集 + 思维)
  2. luoguP3250 [HNOI2016]网络 树链剖分 + 堆
  3. [UOJ50]链式反应
  4. jsp和servlet有哪些相同点和不同点,它们之间的联系是什么?
  5. IOS http 请求
  6. css背景图片模糊
  7. ExtJs ComboBox 在IE 下 自动完成功能无效的解决方案
  8. Regulator IC forms convenient overvoltage detector
  9. Spring发送带附件邮件
  10. gdb -Mysql源代码级调试方法