anchore / anchore-engine

A service that analyzes docker images and scans for vulnerabilities
Apache License 2.0
1.57k stars 273 forks source link

How to purge old analysis (DB size increase quickly) #1386

Open dja-fr opened 1 year ago

dja-fr commented 1 year ago

Is this a request for help?: yes

Hello,

We are running an anchore instance used by our team for docker scan in their CICD pipeline.

We notice that the size of postgres database increase quickly.

Is there a way to purge old scan to recover space in DB ? (manually or cronjob)

thank

brennoo commented 1 year ago

Hi @dja-fr, You can use Anchore analysis-archives rules to control the number of images into the working set