trivy
trivy copied to clipboard
Using "trivy image" --reset and --download-db-only together doesn't download DB
Description
If you run trivy image --reset --download-db-only <image>
, Trivy doesn't download the database.
What did you expect to happen?
Trivy resets the DB and image layer cache, and re-downloads the DB.
What happened instead?
Trivy resets the cache, but does not download the DB.
Output of run with -debug
:
root@trivy:~# trivy image --download-db-only python --debug --reset
2022-08-02T16:54:41.874Z DEBUG Severities: ["UNKNOWN" "LOW" "MEDIUM" "HIGH" "CRITICAL"]
2022-08-02T16:54:41.883Z DEBUG cache dir: /root/.cache/trivy
2022-08-02T16:54:41.883Z INFO Removing DB file...
2022-08-02T16:54:41.924Z INFO Removing artifact caches...
Output of trivy -v
:
root@trivy:~# trivy -v
Version: 0.30.4