title: M1 Mac - Issue bringing up ElasticSearch. Cannot run jdk/bin/java
body: <p>Have done a bit of searching to no avail.  Attempting to setup a project with an Elasticsearch docker container.  Works on my older intel MacBook but no luck so far with the new system.</p>
  <pre><code>elasticsearch    | Exception in thread &quot;main&quot; java.io.IOException: Cannot run program &quot;/usr/share/elasticsearch/jdk/bin/java&quot;: error=0, Failed to exec spawn helper.
  elasticsearch    |  at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
  elasticsearch    |  at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
  elasticsearch    |  at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:111)
  elasticsearch    |  at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
  elasticsearch    |  at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
  elasticsearch    |  at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
  elasticsearch    | Caused by: java.io.IOException: error=0, Failed to exec spawn helper.
  elasticsearch    |  at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
  elasticsearch    |  at java.base/java.lang.ProcessImpl.&lt;init&gt;(ProcessImpl.java:319)
  elasticsearch    |  at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:250)
  elasticsearch    |  at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
  elasticsearch    |  ... 5 more
  elasticsearch exited with code 1
  </code></pre>
  <p>Would greatly appreciate any help or pointing in the right direction!</p>