Skip to content
Discussion options

You must be logged in to vote

Hello everyone!

We do not currently support OCI tar images - https://aquasecurity.github.io/trivy/v0.48/docs/target/container_image/#tar-files.
But we support image directories for OCI images - https://aquasecurity.github.io/trivy/v0.48/docs/target/container_image/#oci-layout.

To avoid compressing images in tar using buildx, use tar parameter - https://docs.docker.com/build/exporters/oci-docker/
e.g.:

➜  buildkit git:(master) ✗ docker buildx build -o type=oci,tar=false,dest=myimage . 
...

➜  buildkit git:(master) ✗ trivy image --input myimage
2023-12-12T14:00:38.631+0600	INFO	Vulnerability scanning is enabled
2023-12-12T14:00:38.632+0600	INFO	Secret scanning is enabled
2023-12-12T14:00:3…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DmitriyLewen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DmitriyLewen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scan/vulnerability Issues relating to vulnerability scanning
3 participants