starting the jar package with java-jar in the current directory depends on the three files selected. How to mount the three files if you use docker to launch the jar package in the container on linux
Thank you
starting the jar package with java-jar in the current directory depends on the three files selected. How to mount the three files if you use docker to launch the jar package in the container on linux
Thank you
do you have such a command in your Dockerfile:
set the working directory to / app, and transfer the files in the current directory to the / app directory in the image
WORKDIR /app
COPY ./ /app
then execute the command when the container starts
CMD java -jar tracker-server.jar
that is to say, there is no mount problem. Just copy the three required files directly into the image.
I hope I can help you.
Previous: How to configure the loading attribute of button in iview table
Next: On the problem of openoffice JODConverter converting various versions of doc into PDF
when k8s views logs, some log files are always garbled because the log file formats of different projects are different. Is there any way to solve this problem? ...
configuration using Docker image under Ubuntu ElasticSearch, cannot be started Environment: Ubuntu Server 16.04.1 LTS 32-bit java version "1.8.0mm 172 " docker pull elasticsearch:5.3.1 command to get elasticsearch image, docker run -e ES_JAVA_O...
I have added port mapping, as shown in figure apt install nginx IP:9001, curl 80 I don t know how to add port mapping ...
I have a question about docker file persistence that I d like to ask you guys now I ve created a docker container for host directory mapping when starting container-v, the folders in the home directory in my container will be empty by default. ...