title: Failed to run a script using IntelliJ plugin for docker deployment
body: <p><strong>Environment</strong>:<br>
  I'm using IntelliJ 14 to deploy docker containers into CoreOS (VM that created using Vagrant and VirtualBox) on my local machine.</p>
  
  <p><strong>Setup</strong>:<br>
  My Dockerfile should run a setup script:  </p>
  
  <pre><code>ADD setup.sh /tmp/setup.sh
  RUN chmod +x /tmp/setup.sh
  RUN /tmp/setup.sh
  </code></pre>
  
  <p><strong>Docker deploy using IntelliJ</strong>:<br>
  When running docker deploy (using IntelliJ), it builds an image, creating a container, but failed to run my script with the following error:</p>
  
  <pre><code>Step 5 : RUN /tmp/setup.sh
  
   ---&gt; Running in cb36ed95ad50
  
  [91m/bin/sh: 1: [0m
  [91m/tmp/setup.sh: not found[0m
  [91m
  [0m
  Error: The command '/bin/sh -c /tmp/setup.sh' returned a non-zero code: 127
  Failed to deploy 'Deployment: Dockerfile: Dockerfile': The command '/bin/sh -c /tmp/setup.sh' returned a non-zero code: 127
  </code></pre>
  
  <p><strong>Docker deploy using Circle CI</strong>:<br>
  I'm also using <a href="https://circleci.com/" rel="nofollow noreferrer">circleci</a> in order to continuously deploy docker containers on AWS EC2 (my staging and production environments).<br>
  When using <a href="https://circleci.com/" rel="nofollow noreferrer">circleci</a> with same docker file and setup.sh script it runs OK.</p>
  
  <p>What is the difference?</p>