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 shares with you a small Demo that ad...
Overview UNION The connection data set keyword ca...
Because what I wrote before was not detailed enou...
Today we will look at why master-slave delay occu...
Table of contents Variable Scope The concept of c...
1. The table tag is table, tr is row, td is cell, ...
This article shares the installation and activati...
Use stored procedures to start transactions when ...
1. What are the formats of lines? You can see you...
This article records the installation tutorial of...
1) Process 2) FSImage and Edits Nodenode is the b...
1. Table structure TABLE person id name 1 you 2 Y...
Glass Windows What we are going to achieve today ...
Preface: Use the element framework in vue3.0, bec...
In some scenarios, we want to assign multiple IPs...