Skip to content

Commit

Permalink
fix: don’t warn if can’t connect to the Docker deamon
Browse files Browse the repository at this point in the history
Closes #6094
  • Loading branch information
rarkins committed Apr 30, 2020
1 parent 8c67162 commit ed40e6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/util/exec/docker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit ed40e6e

Please sign in to comment.