I am trying to build a docker Image using the APIs mentioned in the official link.
But I am unable to get what the document says:
Example request:
POST /v1.24/build HTTP/1.1
{{ TAR STREAM }}
There are few things which are confusing me here,
Where to mention the path for the Dockerfile?
"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 what is archive’s root?
What is the command in detail for building an Image?
You’ve called your file Dockerfile.tar.gz but in reality you’re command creates an uncompressed TAR file. This is the correct procedure but the filename can mislead people into thinking you’ve gzipped the archive.