title: starting container process caused \"exec: \\\"driver\\\": executable file not found in $PATH\"\n"
body: <h1>I have spring based based spark 2.3.0 application. I am trying to do spark submit on kubernetes(minikube).</h1>
  <p>I have Virtual Box with docker and minikube running.</p>
  <p><code>opt/spark/bin/spark-submit --master k8s://https://192.168.99.101:8443 --name cfe2 --deploy-mode cluster --class com.yyy.Application --conf spark.executor.instances=1 --conf spark.kubernetes.container.image=docker.io/anantpukale/spark_app:1.3 local://CashFlow-spark2.3.0-shaded.jar</code></p>
  <h1>Below is the stack trace:</h1>
  <pre><code> start time: N/A
   container images: N/A
   phase: Pending
   status: []
  2018-04-11 09:57:52 INFO  LoggingPodStatusWatcherImpl:54 - State changed, new state: 
       pod name: cfe2-c4f95aaeaefb3564b8106ad86e245457-driver
       namespace: default
       labels: spark-app-selector -&amp;gt; spark-dab914d1d34b4ecd9b747708f667ec2b, spark-role -&amp;gt; driver
       pod uid: cc3b39e1-3d6e-11e8-ab1d-080027fcb315
       creation time: 2018-04-11T09:57:51Z
       service account name: default
       volumes: default-token-v48xb
       node name: minikube
       start time: 2018-04-11T09:57:51Z
       container images: docker.io/anantpukale/spark_app:1.3
       phase: Pending
       status: [ContainerStatus(containerID=null, image=docker.io/anantpukale/spark_app:1.3, imageID=, lastState=ContainerState(running=null, terminated=null, waiting=null, additionalProperties={}), name=spark-kubernetes-driver, ready=false, restartCount=0, state=ContainerState(running=null, terminated=null, waiting=ContainerStateWaiting(message=null, reason=ContainerCreating, additionalProperties={}), additionalProperties={}), additionalProperties={})]
  2018-04-11 09:57:52 INFO  Client:54 - Waiting for application cfe2 to finish...
  2018-04-11 09:57:52 INFO  LoggingPodStatusWatcherImpl:54 - State changed, new state: 
       pod name: cfe2-c4f95aaeaefb3564b8106ad86e245457-driver
       namespace: default
       labels: spark-app-selector -&amp;gt; spark-dab914d1d34b4ecd9b747708f667ec2b, spark-role -&amp;gt; driver
       pod uid: cc3b39e1-3d6e-11e8-ab1d-080027fcb315
       creation time: 2018-04-11T09:57:51Z
       service account name: default
       volumes: default-token-v48xb
       node name: minikube
       start time: 2018-04-11T09:57:51Z
       container images: anantpukale/spark_app:1.3
       phase: Failed
       status: [ContainerStatus(containerID=docker://40eae507eb9b615d3dd44349e936471157428259f583ec6a8ba3bd99d80b013e, image=anantpukale/spark_app:1.3, imageID=docker-pullable://anantpukale/spark_app@sha256:f61b3ef65c727a3ebd8a28362837c0bc90649778b668f78b6a33b7c0ce715227, lastState=ContainerState(running=null, terminated=null, waiting=null, additionalProperties={}), name=spark-kubernetes-driver, ready=false, restartCount=0, state=ContainerState(running=null, terminated=ContainerStateTerminated(containerID=docker://40eae507eb9b615d3dd44349e936471157428259f583ec6a8ba3bd99d80b013e, exitCode=127, finishedAt=Time(time=2018-04-11T09:57:52Z, additionalProperties={}), message=invalid header field value **&quot;oci runtime error:  container_linux.go:247: starting container process caused \&quot;exec: \\\&quot;driver\\\&quot;: executable file not found in $PATH\&quot;\n&quot;**, reason=ContainerCannotRun, signal=null, startedAt=Time(time=2018-04-11T09:57:52Z, additionalProperties={}), additionalProperties={}), waiting=null, additionalProperties={}), additionalProperties={})] 
  2018-04-11 09:57:52 INFO  LoggingPodStatusWatcherImpl:54 - Container final statuses:
       Container name: spark-kubernetes-driver
       Container image: anantpukale/spark_app:1.3
       Container state: Terminated
       Exit code: 127
  2018-04-11 09:57:52 INFO  Client:54 - Application cfe2 finished.
  2018-04-11 09:57:52 INFO  ShutdownHookManager:54 - Shutdown hook called
  2018-04-11 09:57:52 INFO  ShutdownHookManager:54 - Deleting directory /tmp/spark-d5813d6e-a4af-4bf6-b1fc-dc43c75cd643 
  </code></pre>
  <h1>Below is image of my docker file.</h1>
  <p>Error trace suggest that something in docker i have triggered with command &quot;docker&quot;.
  <a href="https://i.stack.imgur.com/0d5Dm.jpg" rel="nofollow noreferrer">dockerfile</a></p>