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