docker-activator
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -30,3 +30,9 @@ var Docker = require('dockerode'), | ||
function getRunningContainers(callback) { | ||
callback(null, []); | ||
docker.listContainers(function (err, containers) { | ||
var list = []; | ||
for (var i=0; i<containers.length; i++) { | ||
list.push(containers[i].Names[0].substring(1)); | ||
} | ||
callback(null, list); | ||
}); | ||
} | ||
@@ -33,0 +39,0 @@ |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"dependencies": { | ||
@@ -10,0 +10,0 @@ "dockerode": "*" |
11669
341