AgustinCB / docker-api

Docker Remote API driver for node.js. It uses the same modem than dockerode, but the interface is promisified and with a fancier syntax.
GNU General Public License v3.0
306 stars 50 forks source link

Getting an error while building an image #53

Open sudheer-sweetiq opened 6 years ago

sudheer-sweetiq commented 6 years ago

@AgustinCB Getting the error "TypeError: data.pipe is not a function" While building an image please find the code below

const Docker = require('node-docker-api').Docker;
const docker = new Docker({
    socketPath: '/var/run/docker.sock'
});

async function runDockerImage() {
        await docker.image.build({t: 'writl/sftp'});
}