Download image docker pull openjdk Creating a Data Volume Create a docker volume create java_app Upload Start the image docker run --name=javaApp --restart=always --network=host \ -v java_app:/usr/src/myapp openjdk java -jar /usr/src/myapp/jar package For example docker run -it -d --network=host --restart=always --name=autoRefreshCSDN -v java_app:/usr/src/myapp openjdk java -jar /usr/src/myapp/autoRefreshCSDN-1.0-SNAPSHOT-jar-with-dependencies.jar This is the end of this article about how to install openjdk in docker and run the jar package. For more information about running jar packages in docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Vue implements the browser-side code scanning function
>>: HTML table markup tutorial (29): cell light border color attribute BORDERCOLORLIGHT
1. Set firewall rules Example 1: Expose port 8080...
Table of contents 1. Basic use of css(): 1.1 Get ...
In Dockerfile, run, cmd, and entrypoint can all b...
Table of contents Installation Steps Environment ...
Preface Generally speaking, when we talk about Li...
What is a tree in web design? Simply put, clicking...
Table of contents Preface 1. Configure intranet D...
Sometimes you will see English commas ",&quo...
Preface In general development, images are upload...
Find the problem When we display the contents in ...
A web designer's head must be filled with a lo...
<br />Original text: http://research.microso...
Table of contents background Solution New Questio...
This article mainly introduces the sample code of...
Table of contents step 1. Configure routing rules...