-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trivy on EKS v1.22 running containerd does not scan local images #2540
Comments
This issue is stale because it has been labeled with inactivity. |
@youwalther65 I just spent all day looking at this. There's really no good way to do this with the current CLI as far as I can tell. the relevant code is in After monkeying around with the code, I was able to force it to use containerd by setting the proper flags in that file. This relates to my work so I may submit a pull request in the coming days, assuming the maintainers are game. |
@youwalther65 Looking at your log, you'll notice that it doesn't give you an error that it couldn't connect to the containerd socket. That means it connected to the socket but couldn't find your image. My guess is that those
default namespace using the CONTAINERD_NAMESPACE env var.
|
Thanks a lot, will take a look after my business travel |
I just had to point crictl to the right socket using:
then crictl image and other commands just work without using CONTAINERD_NAMESPACE env variable. Otherwise I 'll get a warning like:
|
This issue is stale because it has been labeled with inactivity. |
Description
trivy throws errors when running trivy image against local container image when using containerd runtime. This should work with Trivy version => 0.29.. See closed issue https://github.com/aquasecurity/trivy/issues/851
What did you expect to happen?
trivy image to scan image
What happened instead?
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
The text was updated successfully, but these errors were encountered: