title: javaOptions with sbt docker:publishLocal and docker run
body: <p>If I was running my application sans Docker, I would do something like this:</p>
  
  <pre><code>./myapp -Dconfig.file=conf/application.prod.conf -Dlogger.resource=logback.prod.xml
  </code></pre>
  
  <p>In fact, I can do even better and put them into by <code>build.sbt</code> file:</p>
  
  <pre><code>// Production Mode
  javaOptions in Production ++= Seq(
    "-Dconfig.file=conf/application.prod.conf",
    "-Dlogger.resource=logback.prod.xml"
  )
  </code></pre>
  
  <p>and then they will be applied when I run my app:</p>
  
  <pre><code>./myapp  # options now applied via build.sbt
  </code></pre>
  
  <p>When I build my app with <code>sbt docker:publishLocal</code>, then run it with docker run, the <code>javaOptions</code> do not take effect.  </p>
  
  <p>How can I get these <code>javaOptions</code> to take effect when I <code>docker run</code> ?</p>