容器运行出现 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(256) 问题
原因是打印的内容有中文,编码出现问题
Dockerfile中,添加一行,设置环境变量,重新构建镜像,启动容器即可解决
ENV LC_ALL=C.UTF-8
标签:编码,错误,容器,出现,docker,ascii
From: https://www.cnblogs.com/sincere-ye/p/17613859.html