k8s内docker使用arthas

1.下载并解压

wget -c https://github.com/alibaba/arthas/releases/download/arthas-all-3.5.1/arthas-bin.zip

unzip arthas-bin.zip

2.下载jdk

apk add openjdk8

3.非首进程执行jar

//以sh的方式执行
RUN echo "/usr/local/tomcat/bin/catalina.sh run" > start.sh \
             && chmod 777 start.sh
CMD ./start.sh

你可能感兴趣的:(k8s,JAVA)