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
This article is translated from the blog Usability...
Preface smb is the name of a protocol that can be...
The so-called three-column adaptive layout means ...
Because using group by in MySQL always results in...
I was recently writing a lawyer recommendation we...
There are many loop statements in JavaScript, inc...
There is often a scenario where the image needs t...
Implementation ideas: First of all, the alarm inf...
In daily operation and maintenance work, backup o...
When you feel that there is a problem with MySQL ...
Table of contents Preface How does antd encapsula...
1. Use of Iframe tag <br />When it comes to ...
Table of contents Message Board Required librarie...
Detailed description of media device type usage: ...
Table of contents 1. Background running jobs 2. U...