-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Scan host images running containerd #851
Comments
Trivy doesn't support the socket of containerd as of today. |
This issue is stale because it has been labeled with inactivity. |
Any plan to be compatible with containerd to check image on a host ? AKS in Azure fo to containerd with 1.19 version, so this compatibility will be a big plus ! |
This issue is stale because it has been labeled with inactivity. |
Hello all, |
I which Trivy had containerd support for my cluster. Would had been useful to scan for CVE-2021-44228. |
I would be happy to have some guidance to take this issue. @knqyf263 |
Trivy depends on fanal which is a core library communicating with container runtime. Inside of fanal, it calls the API provided by container runtime. You can find two examples.
What the above examples do is calling API to export a container image. They are a bit different as we use Once the image is exported, the format is basically the same regardless of container runtime since it is defined as OCI Image Spec. So, what we have to do is
|
@mowangdk Please feel free to ask any questions! |
ok, gotcha |
See new issue https://github.com/aquasecurity/trivy/issues/2540 |
I've read in the doc that if I'm running a docker container I can bind
/var/run/docker.socket
to the container, it'll detect host images. I've tried doing this with containerd instead of docker, I bound/var/run/containerd/
(the whole folder just to be sure) and it still cannot detect containerd's local images. I don't have docker on this machine and want to use trivy with containerd, is this possible?The text was updated successfully, but these errors were encountered: