FROM openjdk:8u212-b04-jdk-stretchVOLUME /tmpADD myapp.jar app.jarRUN sh -c 'touch /app.jar'CMD ["java", "-Xms256m", "-Xmx256m", "-jar", "app.jar"] 构建 docker build -t app . 运行 docker run -p 18608:18608 --name myname -t app