Closed Diego81 closed 10 years ago
Hi,
I am trying to build an image using the API through the Unix Socket. I am using Node and the request module for this: https://www.npmjs.org/package/request Version of the API is 1.12.
My code looks like this:
var buildImage = function(path, callback) { fs.createReadStream(path) .pipe(request.post(dockerSocket + '/build', function(error, response, body){ console.log(response.statusCode); console.log(body); callback(); })); };
The output I get is as follows:
500 EOF
This is what I see in the docker logs:
2014/07/31 18:57:09 POST /build [ead65634] +job build() EOF [ead65634] -job build() = ERR (1)
Any idea/suggestion?
Thanks in advance!
I created an issue in the wrong project.
I am really sorry about that.
Hi,
I am trying to build an image using the API through the Unix Socket. I am using Node and the request module for this: https://www.npmjs.org/package/request Version of the API is 1.12.
My code looks like this:
The output I get is as follows:
This is what I see in the docker logs:
Any idea/suggestion?
Thanks in advance!