title: Docker OpenJDK-8 JavaFx
body: <p>I am trying to run a java application as JAR within a Dockercontainer using the openjdk.<br>
  Now I got stuck missing the javafx dependencies.</p>
  
  <pre><code>docker run --rm -v `pwd`/:/mnt -v `pwd`/logs:/logs --rm --network="host" openjdk:8-jdk java -jar /mnt/MyJar.jar /mnt/application-localdocker.properties
  </code></pre>
  
  <p>The used openjdk 8 version is this:<br>
  8/jdk/Dockerfile from <a href="https://hub.docker.com/_/openjdk/" rel="nofollow noreferrer">https://hub.docker.com/_/openjdk/</a><br>
  (<a href="https://github.com/docker-library/openjdk/blob/7a33416016b60c045cf0ba99e82617ed6c130595/8/jdk/Dockerfile" rel="nofollow noreferrer">https://github.com/docker-library/openjdk/blob/7a33416016b60c045cf0ba99e82617ed6c130595/8/jdk/Dockerfile</a>)</p>
  
  <p>I was reading why it is excluded and different more complex ways to use it.<br>
  But that does not really help me since I do not want to build my own docker image.<br>
  I think there must be an easier way to do it. All the docs I have read so far exclude the one or other aspect but never combine them.</p>
  
  <p>I would appreciate any help here...  </p>
  
  <p>(For the people asking why using openjdk instead of jre; I do have a database hibernate issue and I want all environments to most likely be the same. Since locally it does not occur but occurs in a dockerized Java-8-JRE environment: Spring @Schedule @Transactional on database access issue.)</p>