Skip to content
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

Image does not contain trivy-db #225

Open
maxkandzia opened this issue Jul 4, 2022 · 3 comments
Open

Image does not contain trivy-db #225

maxkandzia opened this issue Jul 4, 2022 · 3 comments

Comments

@maxkandzia
Copy link

The layer file is only 1kb in size. This file should contain the trivy DB, right?
The image on Docker Hub is updated regularly, but does not seem to contain a Trivy DB. Is there a bug here or is this intentional?

Bildschirmfoto 2022-07-04 um 08 57 58

@afdesk
Copy link
Contributor

afdesk commented Jul 4, 2022

@maxkandzia how did you pull this tar file?

$ oras pull ghcr.io/aquasecurity/trivy-db:2 -a

@maxkandzia
Copy link
Author

Hello @afdesk, I did the pull from docker-hub (https://hub.docker.com/r/aquasec/trivy-db)

docker pull aquasec/trivy-db:v1-2022070400

is the pull only possible from ghcr.io? On the project we only have access to dockerhub. Therefore I would like to pull from dockerhub.

@afdesk
Copy link
Contributor

afdesk commented Jul 4, 2022

Hello @maxkandzia!
no, this database version is deprecated now: aquasecurity/trivy#1653
you can read more about air-gapped mode here: https://aquasecurity.github.io/trivy/v0.29.2/docs/advanced/air-gap/
also there is a way to download the database via Trivy directly:

$ trivy image --download-db-only

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

No branches or pull requests

2 participants