首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能用trivy扫描局部码头图像

不能用trivy扫描局部码头图像
EN

Stack Overflow用户
提问于 2022-05-19 22:25:09
回答 1查看 500关注 0票数 0

我试图找出在本地码头图像上使用trivy的漏洞,但是我得到了这个错误。

代码语言:javascript
复制
docker run aquasec/trivy:0.28.0 image ansys/twindeployer/runtime-vnc:7005166

11s2022-05-19T22:22:02.519Z   FATAL   image scan error: scan error: unable to initialize a scanner: unable to initialize a docker scanner: 3 errors occurred:
    * unable to inspect the image (ansys/twindeployer/runtime-vnc:7005166): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
    * unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory
    * GET https://index.docker.io/v2/ansys/twindeployer/runtime-vnc/manifests/7005166: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:ansys/twindeployer/runtime-vnc Type:repository]]
EN

回答 1

Stack Overflow用户

发布于 2022-08-24 09:11:45

对于这个问题,有一个类似的问题:Scanning local docker image for vulnerability using Trivy gives unauthorized

你必须改变你的命令:

代码语言:javascript
复制
docker run  -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy:0.28.0 image ansys/twindeployer/runtime-vnc:7005166
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72311695

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档