2.2.0 • Published 10 years ago
docker-build v2.2.0
docker-build
Docker build as a duplex stream. Pipe in a tar stream and pipe out the build output
npm install docker-build
Usage
var build = require('docker-build')
var fs = require('fs')
fs.createReadStream('a-tar-file-with-a-dockerfile.tar')
.pipe(build('my-new-image'))
.pipe(process.stdout)
The above example will build a docker image from the input tarball and pipe the build output to stdout using docker running locally on port 2375.
API
var stream = build(tag, [options])
options
can contain the following:
{
host: '/var/run/docker.sock', // host to docker
cache: true, // whether or not to use docker fs cache (defaults to true)
quiet: false, // be quiet - defaults to false,
registry: conf, // add a registry config
remove: true, // automatically removes intermediate contaners (defaults to true)
forceremove: false // always remove intermediate containers, even if the build fails (defaults to false)
}
CLI
There is a command line too available as well
$ npm install -g docker-build
$ docker-build --help
Running docker-build some-image-tag
will build current working directory
License
MIT
2.2.0
10 years ago
2.1.4
10 years ago
2.1.3
10 years ago
2.1.2
10 years ago
2.1.1
10 years ago
2.1.0
10 years ago
2.0.2
10 years ago
2.0.1
10 years ago
2.0.0
10 years ago
1.6.1
10 years ago
1.6.0
10 years ago
1.5.0
10 years ago
1.4.1
10 years ago
1.4.0
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.0
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago