title: Run jar file in docker image
body: <p>I created a Docker image with java, and am copying the jar file into the image. 
  My Dockerfile is :</p>
  
  <pre><code>FROM anapsix/alpine-java
  MAINTAINER myNAME 
  COPY testprj-1.0-SNAPSHOT.jar /home/testprj-1.0-SNAPSHOT.jar
  RUN java -jar /home/testprj-1.0-SNAPSHOT.j
  </code></pre>
  
  <p>After executing following command :   </p>
  
  <pre><code>docker build -t imageName.
  </code></pre>
  
  <p>In the console I see the output from the application and everything is fine.
  But when I stop the image, I don`t know how to run the image again ?
  When I execute the following command :</p>
  
  <pre><code>docker run -i -t imageName java -jar /home/testprj-1.0-SNAPSHOT.jar
  </code></pre>
  
  <p>The application runs again, but in my Dockerfile I have already written this command. How can I run the image without this command and have the application run automatically?</p>