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,
1) Where to mention the path for the Dockerfile?
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 what is archive's root?
3) What is the command in detail for building an Image?
Finally, able to build an image through Docker API.
Sample Dockerfile:
Create a tar file which includes your Dockerfile.
Execute the API as below and for more options, refer this.
Check the docker images after the image is successfully built.
Removed some of the output which is not necessary.
To configure docker daemon port , refer this