Docker Community Forums

Share and learn in the Docker community.

Build image using docker file

Has anyone ever successfully build an image using following command?

curl -v -X POST \
-H "Content-Type:application/tar" \
http://52.212.221.156:2375/build?t=samplerepo&dockerfile="C:\Dockerfile.tar.gz"

Even though file is on specified location, I’m getting following error

{"message":"Cannot locate specified Dockerfile: Dockerfile"}
Or if at all anyone has done it using remote parameter, please help