Skip to content

Commit af98b83

Browse files
committed
all
1 parent fa9f0c1 commit af98b83

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`.split(' '))).stdoutStr.split(`\n`).filter(id => id !== ``)
12-
const repotags = (await exec.exec(`docker`, `image ls --format '{{ .Repository }}:{{ .Tag }}'`.split(' '))).stdoutStr.split(`\n`).filter(id => id !== `` || !id.includes(`<node>`));
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>`));
1313
([...ids, ...repotags]).forEach(this.existingImages.add)
1414
return Array.from(this.existingImages)
1515
}

0 commit comments

Comments
 (0)