Add missing parameter type to buildImage (#18436)

https://github.com/apocas/dockerode#building-an-image3
This commit is contained in:
Byeong Hun Yoo
2017-07-28 00:02:58 +09:00
committed by Andy
parent 03c50b2890
commit 8742a3dec1
2 changed files with 15 additions and 4 deletions

View File

@@ -74,6 +74,10 @@ docker.buildImage('archive.tar', { t: 'imageName' }, (err, response) => {
// NOOP
});
docker.buildImage({context: '.', src: ['Dockerfile', 'test.sh']}, { t: 'imageName' }, (err, response) => {
// NOOP
});
docker.createContainer({ Tty: true }, (err, container) => {
container.start((err, data) => {
// NOOP