title: How to build an Image using Docker API?
body: <p>I am trying to build a <strong>docker Image using the APIs</strong> mentioned in the <a href="https://docs.docker.com/engine/api/v1.24/#images" rel="nofollow noreferrer">official link</a>.</p>
  
  <p>But I am unable to get what the document says:
  Example request:</p>
  
  <pre><code>POST /v1.24/build HTTP/1.1
  
  
  {{ TAR STREAM }}
  </code></pre>
  
  <p>There are few things which are confusing me,</p>
  
  <p>1) Where to mention the <strong>path for the Dockerfile</strong>?</p>
  
  <p>2) "The archive must include a build instructions file, typically called Dockerfile at the archive’s root." This statement from docker docs, the confusion here is <strong>what is archive's root</strong>?</p>
  
  <p>3) What is the <strong>command in detail for building an Image</strong>?</p>