added yaml file variable for swarm mode checks

This commit is contained in:
Vinay Dawani 2022-12-11 03:03:20 -05:00
parent f51e755216
commit fb883c7b27
4 changed files with 54 additions and 46 deletions

View file

@ -44,7 +44,7 @@ export async function servicesFromDocker() {
const serviceServers = await Promise.all(
Object.keys(servers).map(async (serverName) => {
const docker = new Docker(getDockerArguments(serverName));
const docker = new Docker(getDockerArguments(serverName).conn);
const containers = await docker.listContainers({
all: true,
});
@ -167,4 +167,4 @@ export default async function getServiceWidget(group, service) {
}
return false;
}
}