无法下载漏洞数据库 - aquasecurity 的 Trivy

Failed to download vulnerability DB - Trivy by aquasecurity

我正在尝试 运行 使用 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

听起来很荒谬。结果是我的网络阻止了下载。从我的移动设备切换到有线互联网解决了问题。