goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
23.02k stars 4.65k forks source link

How to limit Trivy space, trivy grow without control #20470

Open jorgemansillacriado opened 1 month ago

jorgemansillacriado commented 1 month ago

Trivy Version: 2.7.1

It happen in several environments

docker space of trivy grow a lot more than 8Gb , How to limit space?

I need control grow because trivy fill my Filesystem

Could you help me with it?

zyyw commented 1 month ago

Hi @jorgemansillacriado , by stating that docker space of trivy grow a lot more than 8Gb, could you please share with us how you get this observation? Thanks

zyyw commented 1 month ago

BTW, are you experiencing Trivy consuming 8Gb during an image scanning process or without scanning images?

jorgemansillacriado commented 3 days ago

I have stopped trivy but I have a lot files in overlay2*/diff/tmp

Could I remove it files with trivy stop?