aquasecurity / harbor-scanner-trivy

Use Trivy as a plug-in vulnerability scanner in the Harbor registry
https://goharbor.io
Apache License 2.0
217 stars 75 forks source link

Trivy use a lot space in /var/lib/docker/overlay and grow faster #480

Open jorgemansillacriado opened 4 months ago

jorgemansillacriado commented 4 months ago

What steps did you take and what happened: Trivy use a lot space in /var/lib/docker/overlay and grow faster

until now we don't have problems with trivy and space it has

but the last days trivy spaces has growed a lot , we have one use of 15gb o more [A clear and concise description of what the bug is, what commands you ran, and which actions you performed in Harbor UI.]

What did you expect to happen: solve problem o how to Can I free space

we have tmp space with merge [To reproduce CVE data quality problems provide a minimal container image with pinned versions or point us to a public registry so we can pull the image down by digest.]

Anything else you would like to add:

[Miscellaneous information that will assist in solving the issue.]

Environment: Scanner: Name:Trivy Vendor:Aqua Security Version:v0.37.2

knqyf263 commented 4 months ago

Trivy is not using Docker for image scanning, so /var/lib/docker/overlay should not be grown. Trivy uses its cache. Could you try the latest version?