title: getting permission denied in docker run
body: <p>I am trying using Docker using Dockerfile. </p>
  
  <p>My Dockerfile as follows, where I am using debian linux system. </p>
  
  <pre><code>FROM debian:jessie
  
  ENV DEBIAN_FRONTEND noninteractive
  
  ARG AIRFLOW_VERSION=1.7.1.3
  ENV AIRFLOW_HOME /usr/local/airflow
  
  ..
  ..
  
  COPY script/entrypoint.sh /entrypoint.sh
  COPY config/airflow.cfg ${AIRFLOW_HOME}/airflow.cfg
  ..
  ..    
  USER airflow
  WORKDIR ${AIRFLOW_HOME}
  ENTRYPOINT ["/entrypoint.sh"]
  </code></pre>
  
  <p>So when I run  <code>docker build -t test .</code>, it build without problem.</p>
  
  <p>However, when I run <code>docker run -p 8080:8080 test</code>. </p>
  
  <p>It throws following error:</p>
  
  <pre><code>container_linux.go:247: starting container process caused "exec: \"/entrypoint.sh\": permission denied"
  docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/entrypoint.sh\": permission denied".
  </code></pre>
  
  <p>What is I am doing wrong ?</p>