【记录】Ubuntu18.04 Docker 中文乱码

4,677 阅读1分钟
  1. 查看字符集
locale
  1. 安装 en_US.UTF-8
locale-gen en_US.UTF-8
  1. 可用语言环境

locale -a 4. 更改编码

echo "export LC_ALL=en_US.UTF-8" >> /etc/profile
// docker 镜像 运行以下代码
echo "export LC_ALL=en_US.UTF-8" >> /root/.bashrc
source /etc/profile
source /root/.bashrc