Skip to content
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

Don't rely on Docker for image scan (v2.0.0-beta2) #1624

Open
userbradley opened this issue Feb 13, 2025 · 2 comments
Open

Don't rely on Docker for image scan (v2.0.0-beta2) #1624

userbradley opened this issue Feb 13, 2025 · 2 comments
Labels
question Further information is requested

Comments

@userbradley
Copy link

Howdy!

I have tried to use this, however scanning images seems to rely on the Docker CLI/engine being installed.

As a company, we do not use Docker on computers, instead use podman.

Is there a plan to support non-docker container runtimes in the future?

I am happy to test any changes made!

@cuixq
Copy link
Contributor

cuixq commented Feb 13, 2025

@another-rex

@another-rex
Copy link
Collaborator

another-rex commented Feb 17, 2025

Good news! Container scanning with OSV-Scanner v2 does not rely on docker being installed. The default osv-scanner scan image does invoke docker, but this only acts as a helper script for the following:

docker save /tmp/image.tar && osv-scanner scan image --archive /tmp/image.tar

So you can just run

podman save --format=docker-archive my-image:latest > my-image.tar
osv-scanner scan image --archive ./my-image.tar

to perform the scan.

See the documentation for more details: https://google.github.io/osv-scanner/usage/scan-image

v2 is still in beta, you can download the beta release on our https://github.com/google/osv-scanner/releases page. We are expecting to do a full release some time near the end of this month.

Let me know if this does/doesn't work for you!

@another-rex another-rex added the question Further information is requested label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants