新建Dockerfile文件,加入下面这段话,然后build新的镜像即可修改utf-8编码。 FROM ubuntu:latest #修改utf-8编码 ENV LANG C.UTF-8 CMD /bin/bash