This commit is contained in:
jarek committed 2026-02-16 08:47:29 +01:00
1 parent 8ee4fe4d68
commit f8dcb84c41
1 file changed
+3 -1
@@ -96,7 +96,9 @@ export function shouldBlockUpdate(
* Used to prevent Dockhand from updating its own container. * Used to prevent Dockhand from updating its own container.
*/ */
export function isDockhandContainer(imageName: string): boolean { export function isDockhandContainer(imageName: string): boolean {
return imageName.toLowerCase().includes('fnsys/dockhand'); const lower = imageName.toLowerCase();
// Match fnsys/dockhand, registry.example.com/dockhand, or plain dockhand
return lower.includes('fnsys/dockhand') || /(?:^|\/)dockhand(?::|$)/.test(lower);
} }
/** /**