Skip to content

Commit 668f459

Browse files
committed
sh -c
1 parent af98b83 commit 668f459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ImageDetector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export class ImageDetector {
88
}
99

1010
async getExistingImages(): Promise<string[]> {
11-
const ids = (await exec.exec(`docker image ls -q`)).stdoutStr.split(`\n`).filter(id => id !== ``)
12-
const repotags = (await exec.exec(`docker image ls --all --format '{{ .Repository }}:{{ .Tag }}'`)).stdoutStr.split(`\n`).filter(id => id !== `` || !id.includes(`<node>`));
11+
const ids = (await exec.exec(`docker image ls -q`, [], { silent: true })).stdoutStr.split(`\n`).filter(id => id !== ``)
12+
const repotags = (await exec.exec(`sh -c "docker image ls --all --format '{{ .Repository }}:{{ .Tag }}'"`, [], { silent: false })).stdoutStr.split(`\n`).filter(id => id !== `` || !id.includes(`<node>`));
1313
([...ids, ...repotags]).forEach(this.existingImages.add)
1414
return Array.from(this.existingImages)
1515
}

0 commit comments

Comments
 (0)