docker运行jar实现自动重启
1、复制jar包和配置文件到指定路径
2、运行容器创建命令
docker run -d -it -v /home/ssiot/fhjar/application.yml:/root/application.yml -v /home/ssiot/fhjar/huli_sync_server-1.0.jar:/root/huli_sync_server-1.0.jar --restart=always --privileged=true --name sync_server harbor.iotwedora.com:40180/public/openjdk11:latest java –jar /root/huli_sync_server-1.0.jar --spring.config.location=/root/application.yml