Docker container 2, JDK environment 3, no font environment

Solution: Create your own image, Dockerfile see below

The FROM registry.cn-hangzhou.aliyuncs.com/ghoulich-centos/centos:7.4.1708 MAINTAINER ZXP * * * @ 163. com COPY agent agent # /jred/lib/fonts/fallback directory TTC ENV LANG en_US. Utf-8 ENV LANGUAGE en_US:en ENV JAVA_HOME=/jdk1.8.0_131 ENV PATH=$JAVA_HOME/bin:$PATH ENV CLASSPATH=.:$JAVA_HOME/lib/dtCopy the code

Make the image and upload it to Ali Cloud image Center

$ docker build -t jdk8:latest . $ sudo docker login [email protected] registry.cn-hangzhou.aliyuncs.com Password: password $sudo docker tag image [id] registry.cn-hangzhou.aliyuncs.com/zxporz/jdk8: [version] $sudo docker push Registry.cn-hangzhou.aliyuncs.com/zxporz/jdk8: [version]Copy the code

Use the image you upload as the base

FROM registry.cn-hangzhou.aliyuncs.com/zxporz/jdk8:latest
ENV  TZ CST-8
COPY *.jar /*.jar
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8 -Duser.language=zh -Duser.region=zh_CN -Duser.country=zh_CN
ENTRYPOINT exec java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap  $JAVA_OPTS $SKYWALKING_OPTS  -jar /*.jar
Copy the code