Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Cannot reclaim disk space without outage #1373

Open
verma-preet opened this issue Apr 1, 2022 · 0 comments
Open

Cannot reclaim disk space without outage #1373

verma-preet opened this issue Apr 1, 2022 · 0 comments

Comments

@verma-preet
Copy link

verma-preet commented Apr 1, 2022

Is this a request for help?: Yes


Version of Anchore Engine and Anchore CLI if applicable:
anchore-cli version: 0.9.2
anchore engine version: v0.10.0

What happened:
anchore_anchore-db-volume and anchore_analyzer eats up the disk space quite rapidly given the huge volume of images we scan.
We run out of the disk space very frequently, despite giving 100G to anchore.
I haven't found a good way to clean up the docker volume other than

  • stop anchore
  • prune docker volume
  • start anchore

This causes an outage and evidently not a happy path.

I have also tried to delete the scanned/analyzed images but that doesn't seem to free up any space. This same issue is also brought up in #1362. The suggested solution is to change vacuum settings on postgres but we are using the postgres service from anchore which we don't directly modify.

What did you expect to happen:
Anchore should have some config or scripts to gracefully clean up the docker volume, without having to stop and restart anchore docker services.
As an additional note, we don't need to keep the old images around and are ok to wipe them as long as we can do it while the anchore services stay up and running.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant