dockertest.js 274 Bytes
var Docker = require('dockerode')
var docker = new Docker({socketPath: '/var/run/docker.sock'})

docker.buildImage({
    context: '../dockerfiles/sk2jsif92jajsdi1',
    src: ['Dockerfile']
    }, {t: 'testimage1337'}, function (err, response) {
    console.log(response)
})