1.0.0 • Published 8 years ago
fear-core-docker v1.0.0
This repo contains the docker api library.
You can use this to execute Docker, Docker Machine and VNC commands
Installation
To use the library, please install the module first:
$ npm install --save-dev git+ssh://git@github.com:DigitalInnovation/fear-core-docker.git
PLEASE NOTE the above command requires npm
version 2.7.1
or above, see this issue.
Usage
var coreDocker = require('fear-core-docker').docker;
var dockerMachine = require('fear-core-docker').machine;
var dockerVnc = require('fear-core-docker').vnc;
dockerMachine.create('my-machine-name')
.then(function() {
return dockerMachine.start('my-machine-name');
});
var docker = new coreDocker('my-machine-name');
docker.ready()
.then(function() {
return docker.pull('my-container-image');
})
dockerVNC.open({host: global.dockerMachineIP['my-ip-identifier']});