[英]alpine linux docker image, console encoding trouble
I have a scala app that is running in docker container. 我有一个在docker容器中运行的scala应用程序。 I use image 'develar/java' which is based on alpine linux.
我使用基于alpine linux的image'develar / java'。 My app is working, but i don't see cyrillic logs.
我的应用程序正在运行,但我没有看到西里尔日志。 Here what i have:
在这里我有:
docker logs -f myApp
22:22:08.152 [main] INFO application - Creating Pool for datasource 'default'
22:22:09.213 [main] INFO play.api.db.DefaultDBApi - Database [default] connected at jdbc:postgresql://localhost/db
22:22:09.627 [main] INFO p.a.l.concurrent.ActorSystemProvider - Starting application default Akka system: application
22:22:09.698 [main] INFO application - ????????????? ??????? ???????
22:22:09.722 [main] INFO application - ????????????? ??????? 'direct
22:22:09.734 [main] INFO application - ????????????? ??????? 'adwords
22:22:09.761 [main] INFO play.api.Play$ - Application started (Prod)
22:22:09.866 [main] INFO play.core.server.NettyServer$ - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
But logs that are delivered to elasticsearch server are ok. 但是传递给elasticsearch服务器的日志是可以的。 How can i force alpine linux to work with utf-8?
我如何强制alpine linux使用utf-8?
develar/java
has an old bug of an old glibc 2.21 package. develar/java
有一个旧的glibc 2.21包的旧bug。 Andy Shinn (the creator and maintainer of glibc package for Alpine) and I have resolved this a long time ago in glibc 2.23 packaging, which I have integrated into frolvlad/alpine-glibc
, which is the base image for frolvlad/alpine-oraclejre8
. Andy Shinn(Alpine的glibc包的创建者和维护者)和我很久以前在glibc 2.23包装中解决了这个问题 ,我将其整合到
frolvlad/alpine-glibc
,这是frolvlad/alpine-oraclejre8
的基本图像。 Just replace devalar/java
with frolvlad/alpine-oraclejre8:slim
and you should be fine. 只需用
frolvlad/alpine-oraclejre8:slim
替换devalar/java
frolvlad/alpine-oraclejre8:slim
,你应该没问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.