title: How to run `git clone` in docker file?
body: <p>I have specified a <code>git clone</code> command in the docker file as below.</p>
  
  <pre><code>RUN git clone https://github.com/zhaoyi0113/test.git
  </code></pre>
  
  <p>but I got this error when build the docker image:</p>
  
  <pre><code>Cloning into 'test'...
  fatal: could not read Username for 'https://github.com': No such device or address
  </code></pre>
  
  <p>I wonder why it doesn't work. I am able to run this command on my host. Is there anything different if I list it on docker file? </p>