diff --git a/lib/util/exec/docker/index.ts b/lib/util/exec/docker/index.ts index b0fa2c23ddbcd252b4c8fabe8e0b1ed21b61d753..0c488bfb71a5c200fcadf1b280d48b07a710bc5d 100644 --- a/lib/util/exec/docker/index.ts +++ b/lib/util/exec/docker/index.ts @@ -159,11 +159,13 @@ export async function removeDanglingContainers(): Promise<void> { } else { logger.debug('No dangling containers to remove'); } - } catch (err) { - // istanbul ignore if + } catch (err) /* istanbul ignore next */ { if (err.errno === 'ENOMEM') { throw new Error(SYSTEM_INSUFFICIENT_MEMORY); } + if (err.stderr?.includes('Cannot connect to the Docker daemon')) { + logger.info('No docker deamon found'); + } logger.warn({ err }, 'Error removing dangling containers'); } }