title: ADD failed : No such file/Directory while building docker image
body: <p>I have below Dockerfile:</p>
  
  <pre><code>FROM python:3
  
  RUN mkdir -p /test/code/
  RUN mkdir -p /test/logs/
  RUN mkdir -p /test/configs/
  
  ADD test.py /test/code/
  ADD test_output.txt /test/code/
  ADD test_input.txt /test/configs/
  ADD logfile.log /test/logs/
  
  
  CMD [ "python3", "/test/code/test.py" ]
  </code></pre>
  
  <p>My directory structure is:</p>
  
  <pre><code>/home/&lt;username&gt;/test/
                   |-&gt; code/Dockerfile, test_output.txt, test.py
                   |-&gt; logs/logfile.log
                   |-&gt; configs/test_input.txt
  </code></pre>
  
  <p>when I am building the docker image using below command:</p>
  
  <pre><code>sudo docker build -t myimage .
  </code></pre>
  
  <p>It shows below error:</p>
  
  <pre><code>Step 7/9 : ADD test_input.txt /test/configs/
  ADD failed: stat /var/lib/docker/tmp/docker-builder562406652/test_input.txt: no such file or directory
  </code></pre>
  
  <p>Why it shows this error when I have the directory and my file is also present.</p>