Merge pull request #657 from d0gkiller87/fix-no-such-image

Handle image lookup failures to prevent the `No such image...` error along with a blank container list
This commit is contained in:
fmartinou
2025-11-27 15:42:02 +01:00
committed by GitHub

View File

@@ -632,9 +632,12 @@ class Docker extends Component {
container.Labels[wudDisplayIcon],
container.Labels[wudTriggerInclude],
container.Labels[wudTriggerExclude],
),
).catch(e => {
this.log.warn(`Failed to fetch image detail for container ${container.Id}: ${e.message}`);
return e;
}),
);
const containersWithImage = await Promise.all(containerPromises);
const containersWithImage = (await Promise.all(containerPromises)).filter(result => !(result instanceof Error));
// Return containers to process
const containersToReturn = containersWithImage.filter(