docker本地化异常:/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

docker中经常设置不了 环境变量$LC_ALL,  导致报很多奇怪的编码错误:

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

解决方法: 

 sudo localedef -i en_US -f UTF-8 en_US.UTF-8

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

posted @ 2019-05-08 14:04  hello-Jesson  阅读(6407)  评论(0编辑  收藏  举报