title: Docker make .sh executable and run it
body: <p>I'm trying to give executable permission to my script inside docker image and run it. I don't want to set chmod + x for it in Dockerfile.
  i tried </p>
  
  <blockquote>
    <p>docker run img /bin/bash -c "chmod +x ../test/test.sh; ../test/test.sh</p>
  </blockquote>
  
  <p>but i got "/bin/bash: bad interpreter: Text file busy"</p>
  
  <p>and i can't just make two containers with this commands:</p>
  
  <blockquote>
    <p>docker run -d img chmod +x ../test/test.sh</p>
    
    <p>docker run -d img ../test/test.sh</p>
  </blockquote>
  
  <p>=> starting container process caused "exec: \"../test/testing.sh\": permission denied"</p>
  
  <p>i need somehow bind this two containers together</p>