anchore-engine icon indicating copy to clipboard operation
anchore-engine copied to clipboard

How to purge old analysis (DB size increase quickly)

Open dja-fr opened this issue 1 year ago • 1 comments

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

dja-fr avatar Jul 22 '22 14:07 dja-fr

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

brennoo avatar Aug 02 '22 08:08 brennoo