From 67a8df72aa9b80f01fcb6d67b347876f8adb247a Mon Sep 17 00:00:00 2001 From: Syco21 Date: Sat, 16 May 2026 17:18:57 +0200 Subject: [PATCH] Filter sha256-only containers, truncate long image tags --- server/routes/updates.ts | 4 ++++ src/components/widgets/DockerUpdatesWidget.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/routes/updates.ts b/server/routes/updates.ts index c302047..30125b9 100644 --- a/server/routes/updates.ts +++ b/server/routes/updates.ts @@ -149,6 +149,10 @@ router.get('/docker', async (_req, res) => { // Skip ephemeral CI/pipeline containers if (containerName.startsWith('wp_')) continue + // Skip containers with no real name or image tag (sha256-only) + const isShaTag = rawImage.startsWith('sha256:') || rawImage.includes('@sha256:') && !rawImage.includes(':') + if (!containerName || isShaTag) continue + // Get repo digests via image inspect let repoDigest: string | null = null try { diff --git a/src/components/widgets/DockerUpdatesWidget.tsx b/src/components/widgets/DockerUpdatesWidget.tsx index 2cf337e..fd56ada 100644 --- a/src/components/widgets/DockerUpdatesWidget.tsx +++ b/src/components/widgets/DockerUpdatesWidget.tsx @@ -55,7 +55,7 @@ export function DockerUpdatesWidget() {
{c.name} - {c.image}:{c.tag} · {c.endpoint} + {c.image}:{c.tag.startsWith('sha256:') ? c.tag.slice(0, 15) + '…' : c.tag} · {c.endpoint}
{c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io' ? (