-
Notifications
You must be signed in to change notification settings - Fork 621
Grype can't update DB in docker volume (regression) #2517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the issue report @Bergstein Confirmed here:
|
It sounds like we should create the temp download directory in the |
Hi there, I ran into same issue as I tried to update Grype to its latest version. In case anyone is interested, here is how I got it running again. I stopped using the "GRYPE_DB_CACHE_DIR" folder and used this trick:
|
I confirm the regression. It appeared in a well-tested script scanning all
I also confirm that reverting to |
This is the newest version of Grype that doesn't have this bug: anchore/grype#2517
What happened:
grype db update doesn't work if database in volume.
[0011] ERROR unable to update vulnerability database: unable to activate new vulnerability database: rename /tmp/grype-db-download2458041976 /tmp/grype/6: invalid cross-device link
What you expected to happen:
0.87.0 - works
0.88.0 - fails
0.89.0 - fails
How to reproduce it (as minimally and precisely as possible):
docker run --rm -it -e GRYPE_DB_CACHE_DIR=/tmp/grype --volume cache-grype:/tmp/grype anchore/grype:v0.87.0 db update
- OKdocker run --rm -it -e GRYPE_DB_CACHE_DIR=/tmp/grype --volume cache-grype:/tmp/grype anchore/grype:v0.88.0 db update
- NOT OKdocker run --rm -it -e GRYPE_DB_CACHE_DIR=/tmp/grype --volume cache-grype:/tmp/grype anchore/grype:v0.89.0 db update
- NOT OKdocker run --rm -it anchore/grype:v0.89.0 db update
- OKdocker run --rm -it anchore/grype:v0.88.0 db update
- OKdocker run --rm -it anchore/grype:v0.87.0 db update
- OKEnvironment:
The text was updated successfully, but these errors were encountered: