mirror of
https://github.com/louislam/dockge.git
synced 2025-02-17 09:05:56 +00:00
Fix #236
This commit is contained in:
parent
bd5dd3c3ad
commit
607c908f2d
1 changed files with 6 additions and 1 deletions
|
@ -297,7 +297,12 @@ export class Stack {
|
||||||
let res = await childProcessAsync.spawn("docker", [ "compose", "ls", "--all", "--format", "json" ], {
|
let res = await childProcessAsync.spawn("docker", [ "compose", "ls", "--all", "--format", "json" ], {
|
||||||
encoding: "utf-8",
|
encoding: "utf-8",
|
||||||
});
|
});
|
||||||
let composeList = JSON.parse(res.toString());
|
|
||||||
|
if (!res.stdout) {
|
||||||
|
return statusList;
|
||||||
|
}
|
||||||
|
|
||||||
|
let composeList = JSON.parse(res.stdout.toString());
|
||||||
|
|
||||||
for (let composeStack of composeList) {
|
for (let composeStack of composeList) {
|
||||||
statusList.set(composeStack.Name, this.statusConvert(composeStack.Status));
|
statusList.set(composeStack.Name, this.statusConvert(composeStack.Status));
|
||||||
|
|
Loading…
Add table
Reference in a new issue