tmatilai / vagrant-proxyconf

Vagrant plugin that configures the virtual machine to use proxies
MIT License
531 stars 74 forks source link

EOF when building an image using the API #77

Closed Diego81 closed 10 years ago

Diego81 commented 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!

Diego81 commented 10 years ago

I created an issue in the wrong project.

I am really sorry about that.