编写Dockerfile
FROM java:latest
ADD arthas-tunnel-server-3.5.1-fatjar.jar arthas-server.jar
ENTRYPOINT ["java","-jar","/arthas-server.jar"]
端口映射
docker run -p 18080:8080 -p 7777:7777 arthas-server
标签:java,jar,server,7777,18080,arthas,镜像
来源: https://www.cnblogs.com/hlssz/p/14869511.html