title: Cannot run the script when creating a docker container
body: <p>I am using docker-compose to build an Image and run a container. In my Dockferfile, I have included this line:</p>
  
  <pre><code>ENTRYPOINT ["entrypoint.sh"]
  CMD /bin/bash
  </code></pre>
  
  <p>This entrypoint script does exist (I did try getting into a container and it exists) and the working directory of the scrip also correct. The script itself is:</p>
  
  <pre><code>#!/bin/bash
  set -e
  set -u
  
  echo "==&gt; Executing master image entrypoint ..."
  
  echo "-&gt; Setting up ROS"
  source "./devel/setup.bash"
  #chmod 666 /dev/ttyUSBO
  echo "==&gt; Container ready"
  exec "$@"
  </code></pre>
  
  <p>When I run:</p>
  
  <pre><code>docker-compose up --build
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ERROR: for 45f1dcaf575e_rosdocker_master_1  Cannot start service master: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"entrypoint.sh\": executable file not found in $PATH": unknown
  
  ERROR: for master  Cannot start service master: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"entrypoint.sh\": executable file not found in $PATH": unknown
  </code></pre>