@cicoub13 I just quickly tested a small piece of js with the lib we use without going all the way.
var Docker = require('dockerode');
var docker = new Docker({socketPath: '/var/run/docker.sock'});
// HERE we can replace gladys with os.hostname
var container = docker.getContainer('gladys');
container.inspect(function (err, data) {
var string = JSON.stringify(data);
var objectValue = JSON.parse(string);
console.log(objectValue['HostConfig']['Binds']);
});
Returns the standard mounts
[
'/var/run/docker.sock:/var/run/docker.sock',
'/var/lib/gladysassistant:/var/lib/gladysassistant'
]
A small regex to get the host side bind and that should solve this point?