docker-activator
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -124,2 +124,6 @@ var Docker = require('dockerode'), | ||
function exec(containerName, command, callback) { | ||
if (command === '') { | ||
callback(null); | ||
return; | ||
} | ||
docker.getContainer(containerName).exec({ Cmd: [ 'sh', command ] }, function(err, exec) { | ||
@@ -126,0 +130,0 @@ exec.start(function(err, stream) { |
@@ -22,2 +22,3 @@ var containers = require('./containers'), | ||
containers.stop(data.containerName, preShutdownCommand, callback); | ||
lru.remove(data.containerName); | ||
} | ||
@@ -24,0 +25,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"dependencies": { | ||
@@ -10,0 +10,0 @@ "dockerode": "*" |
11792
347