apocas / dockerode

Docker + Node = Dockerode (Node.js module for Docker's Remote API)
Apache License 2.0
4.39k stars 465 forks source link

Error building image #753

Open JoelVeloz opened 11 months ago

JoelVeloz commented 11 months ago

I get this error: {"errorDetail":{"message":"When using COPY with more than one source file, the destination must be a directory and end with a /"},"error":"When using COPY with more than one source file, the destination must be a directory and end with a /"}

when i exec this: this.docker.buildImage(pack, { t: imageName }, (err, res) => { if (err) { console.log('Error ALERT: ', err); return; } const stream = fs.createWriteStream(logPath, { flags: 'a' }); res.pipe(stream); res.pipe(process.stdout); });