-
Notifications
You must be signed in to change notification settings - Fork 153
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
Does not work with Docker >= 25? #139
Comments
After some digging, it seems that Docker >24 saves Docker images in OCI format (moby/moby#44598). This change is incompatible with the old Clair version bundled in clair-local-scanner (tar filetree has changed, manifest has changed, ...). |
The actual layout in the tar changed, however the manifest did not and the manifest, prior to the mentioned change, is the source of truth for how to read the tarball. |
@romaincabassot Thanks for the PR and the fix. @datadot Is this something you want to look at? |
@arminc thanks taking a look. |
Hello,
We use your clair-scanner since some time now and it worked well but recently we updated our Docker version and I cannot manage to get it working again.
On a Debian 12 server it failed with latest Docker engine version (26.1.3), I tried to downgrade Docker because I wasn't able to identify an issue on our side: it doesn't work with 25.0.5 but works with 24.0.9.
As this server is configured with certificates, swarm, docker specific options, etc I tried the same on my Laptop (Ubuntu 22.04) with Docker engine version 26.1.3 and no specific configuration. It fails on 26.1.3, works on 24.0.9.
My local test:
Clair logs:
Is the issue known?
Thanks
Romain
The text was updated successfully, but these errors were encountered: