无法使用Trivy扫描本地Docker图像
我正在尝试使用Trivy在本地Docker映像上使用Trivy来解决漏洞,但是我遇到了此错误。
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]]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此处有一个类似的问题:
您必须更改命令:
There's a similar question for this problem here: Scanning local docker image for vulnerability using Trivy gives unauthorized
You have to change your command: