Currently, I have so it creates a new ssh connection on every request. Do you think the ssh connection should persist? So you think it should be an option?
Example:
var Docker = require("dockerode");
var fs = require('fs');
var key = fs.readFileSync('/path/to/ssh-key');
var docker = new Docker({
protocol: 'ssh',
host: 'localhost',
ssh: {
privateKey: key,
username: 'root'
}
});
docker.listImages((e,d) => {
console.log('img', e, d);
});
docker.info((e,d) => {
console.log('con', e, d);
});
Currently, I have so it creates a new ssh connection on every request. Do you think the ssh connection should persist? So you think it should be an option?
Example:
fixes #99