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" \"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