title: Docker - executable file not found in $PATH
body: <p>In my Ubuntu Server I have following directory structure: <strong>/home/docker/groovy</strong>. In this location I have simple groovy file. On Docker it is running container <strong>groovy_repo_1</strong>. </p>
  
  <p>After I entered groovy directory I wanted to perform such script on container:</p>
  
  <pre><code>docker exec groovy_repo_1 docker.groovy
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>rpc error: code = 2 desc = oci runtime error: exec failed: 
  container_linux.go:247: starting container process caused "exec: 
  \"docker.groovy\": executable file not found in $PATH"
  </code></pre>
  
  <p>Why is it happen?</p>