title: spark-submit to a docker container
body: <p>I created a Spark Cluster using this <a href="https://github.com/big-data-europe/docker-hadoop-spark-workbench" rel="nofollow noreferrer">repository</a> and the relative documentation.</p>
  <p>Now I'm trying to execute through <code>spark-submit</code> a job inside the Docker container of the Spark Master so the command that I use is something similar:</p>
  <pre><code>/path/bin/spark-submit --class uk.ac.ncl.NGS_SparkGATK.Pipeline \
  --master spark://spark-master:7077 NGS-SparkGATK.jar HelloWorld
  </code></pre>
  <p>now the problem is that i receive <code>Failed to connect to master spark-master:7077</code></p>
  <p>I tried any combination: container IP, container ID, container name, localhost, 0.0.0.0, 127.0.0.1 but I receive always the same error.</p>
  <p>While if I use <code>--master local[*]</code> the application works.</p>
  <p>What am I missing?</p>