0

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

1 回答 1

0

听起来很荒谬。原来我的网络阻止了下载。从我的移动设备切换到网络连接解决了这个问题。

于 2021-03-03T10:14:07.060 回答