无法下载漏洞 DB - Trivy by aquasecurity

时间:2021-03-03 10:14:07

标签: docker trivy

我正在尝试使用 Trivy 对 docker 映像运行安全扫描。 Docker 运行抛出错误 failed to download vulnerability DB: DB file not found 有什么理由吗?

命令:

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

错误:

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

1 个答案:

答案 0 :(得分:0)

听起来很可笑。结果是我的网络阻止了下载。从我的移动设备切换到网络共享解决了这个问题。