![]() To stop it, you need to open another command line and do: docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESġ6dad8047672 docker_myapp "java -jar /app/app.…" 7 hours ago Up 7 hours 0.0.0. Note: You can't stop it from the same command line using Ctrl+C. Then, run it from the command line using: docker run -p 8080:8080 docker_myapp To fix this shim situation, uninstall and reinstall JDK 17. This is because the javapath is placed before JDK 17 location in the user environment path. If you built your container using: docker build -t docker_myapp. When you install JDK 17 and then install JRE 8, and then run the java -version command, 1.8.0 is displayed in the output instead of 17. myapp-0.0.1-SNAPSHOT.jar /app/app.jarĮNTRYPOINT RUN adduser -no-create-home -u 1000 -D $APPLICATION_USERĬOPY -chown=1000:1000. JavaFX is an open source, next generation client application platform for desktop, mobile and embedded systems built on Java. Adding to excellent answer, for the benefit of other newbies like me, I am posting here the Dockerfile that works for me (as of May 2023, built and run from a Windows 10 PC): FROM amazoncorretto:17.0.7-alpine
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |