title: Load JavaAgent on JVM
body: <p>I have a theoretic question about java Agents. It's posible do a java or openJDK instruction to add a java agent before execute java?</p>
  <p>The normally execution of javaagent (i discard runtime execution) is:</p>
  <pre><code>java -jar -javaagent myJavaAgent myProgram.jar
  </code></pre>
  <p>But my idea is create a docker container with OpenJDK version and my agent load</p>
  <p><strong>PersonalJDK</strong></p>
  <pre><code>FROM openjdk:7
  RUN java LOAD AGENT // I DONT KNOW THIS INSTRUCTION
  </code></pre>
  <p><strong>the customer use my container with my agent load</strong></p>
  <pre><code>FROM personalJDK:7
  COPY . /usr/src/myapp
  WORKDIR /usr/src/myapp
  RUN javac Main.java
  CMD [&quot;java&quot;, &quot;Main&quot;]
  </code></pre>