Closed guilherme-santos closed 6 years ago
@apocas I'm not pulling the image I'm building it. For example, to build following Dockerfile I'll get the same error...
FROM scratch
VOLUME /data
With this test case you can see that will fail:
it("should build image from scratch", function(done) {
this.timeout(60000);
function handler(err, stream) {
expect(err).to.be.null;
expect(stream).to.be.ok;
stream.pipe(process.stdout, {
end: true
});
stream.on('end', function() {
done();
});
}
docker.buildImage({
context: __dirname,
src: ['Dockerfile.scratch']
}, {}, handler);
});
Nothing we can do, Docker reserved that word :(
It's Docker that's sending that error to dockerode, dockerode is just displaying it to you.
When I tried to build a dockerfile that uses:
I receive the message
'scratch' is a reserved name