Failed to download vulnerability DB – Trivy by aquasecurity

  docker

I’m trying to run security scan on docker images with Trivy. Docker run throws error
failed to download vulnerability DB: DB file not found any reason why?

Command:

$ mkdir /tmp/trivy
$ docker run --rm -v /tmp/trivy:/root/.cache/ aquasec/trivy python:3.4-alpine

Error:

2021-03-03T09:55:22.770Z        WARN    You should avoid using the :latest tag as it is cached. You need to specify '--clear-cache' option when :latest image is changed
2021-03-03T09:55:22.771Z        INFO    Need to update DB
2021-03-03T09:55:22.771Z        INFO    Downloading DB...
2021-03-03T09:55:23.309Z        FATAL   failed to download vulnerability DB: failed to download vulnerability DB: DB file not found

Source: Docker Questions

LEAVE A COMMENT