diff --git a/src/lib/server/scanner.ts b/src/lib/server/scanner.ts index f6c4af6..5b0d498 100644 --- a/src/lib/server/scanner.ts +++ b/src/lib/server/scanner.ts @@ -17,7 +17,6 @@ import { import { getEnvironment, getEnvSetting, getSetting } from './db'; import { sendEventNotification } from './notifications'; import { - detectHostDataDir, getHostDockerSocket, getHostDataDir, extractUidFromSocketPath, @@ -618,10 +617,6 @@ async function runScannerContainerCore( ): Promise { console.log(`[Scanner] Starting ${scannerType} scan for image: ${imageName}, envId: ${envId ?? 'local'}`); - // Ensure startup inspect caches are populated before we mirror Dockhand's own - // Docker access settings into sibling sidecars. - await detectHostDataDir().catch(() => null); - // Always use the base cache path — serial lock prevents concurrent conflicts const basePath = scannerType === 'grype' ? '/cache/grype' : '/cache/trivy'; const dbPath = basePath; diff --git a/src/routes/api/self-update/+server.ts b/src/routes/api/self-update/+server.ts index 0b098c5..bb0889e 100644 --- a/src/routes/api/self-update/+server.ts +++ b/src/routes/api/self-update/+server.ts @@ -1,7 +1,6 @@ import { json } from '@sveltejs/kit'; import { authorize } from '$lib/server/authorize'; import { - detectHostDataDir, getOwnContainerId, getHostDockerSocket, getOwnDockerHost, @@ -262,9 +261,6 @@ export const POST: RequestHandler = async ({ request, cookies }) => { return json({ error: 'Not running in Docker' }, { status: 400 }); } - // Populate cached inspect data used to mirror Dockhand's own sidecar settings. - await detectHostDataDir().catch(() => null); - const writable = await isDockerWritable(containerId); if (!writable) { return json({