File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments